Encryption between j2me and j2ee

I need to exchange some cofidential data between j2me client and servelt using http connection . So i need to encrypt the data before i send from j2me and the data should be decrypted at the server side so obviously i should also pass the key. I have searched on the net for a common algorthim that wil suit my requirements but i din get any useful solution. Please any one help me in finding out a algorithm tat meets my requirements.
I appreciate all the replies

i am getting the impression you are new to data security...
if this is indeed the case, and you are in any kind of hurry, i strongly advise you to use ssl if at all possible.
if you can not or will not use ssl then you will need to look into some other options.
there are multiple algorithms to choose from for secure key exchange, diffie-hellman prob being the most popular.
however, you will need to supplement the cldc api in order to implement.
some key words to search on:
diffie-hellman
rsa
aes
tripple des
satsa
bouncycastle
j2me security
j2me encryption

Similar Messages

  • Difference between J2SE and J2EE...

    Hi all. I was wondering what the difference between J2SE and J2EE were. I mean in the code structure. Are the packages the same, like Swing, IO, things like that. I'm a bit of a beginner in Java, only been messing around with it for about 6 months now kind of in my spare time, and I know I'm in now way ready for J2EE, but it's something I think I'd like to maybe look into. I know it's for Enterprise Applications, much bigger scale than I'm used to, but fundamentally, how is it different? Different coding conventions? New packages not in J2SE? I hope what I want is coming across okay. Thanks for all the input.
    James

    J2EE defines a large number of specifications, in addition to J2SE. Examples are the Servlet, JSP, JMS, and EJB specifications. Most of those specifications are designed to have implementations running inside an Application Server. There are free implementations available such as JBoss (combined with for example Tomcat), and I think youre best bet to learn is to download one of those and go from there. Servlets and JSP are a good beginning, and then maybe move on to EJB and the rest.
    Br - J

  • What is the difference between JDK and J2ee

    Could someone explain, in simple terms, what is the difference between JDK and J2ee. I am trying to understand the difference.
    THanks

    Could someone explain, in simple terms, what is the
    difference between JDK and J2ee. I am trying to
    understand the difference.You can practice on this one first. What's the difference between chalk and cheese? No just kidding.
    A JDK is a set of tools for Java development including compiler, runtime system and standard libraries. J2EE is the enterprise version of the Java technology platform (it's one of three). To use it you download the proper JDK's.

  • J2ME and J2EE cross platform

    Hi everyone,
    Currently I'm developing a three tier architecture system. The presentation logic will be developed using J2ME while the business logic will be developed using J2EE. There are a lot of projects on this area. However, the projects are on web centric application. My system is to develop non web centric application. Therefore, I have some questions that need help from expert.
    1. Is it possible to use J2EE to retrieve data from database and send the result to mobile phone? [NOTE: This is not an web application].
    2. Should I use EJB to develop the application?
    Thanks for your help and have a nice day.
    With regards,
    Teck Guan.

    1. Is it possible to use J2EE to retrieve data from databaseYes, that's about 98% of what J2EE systems are for.
    and send the result to mobile phone?If the mobile phone can talk HTTP to the J2EE server, yes.
    2. Should I use EJB to develop the application? If you're using J2EE you don't have much choice about that.
    But your question has nothing whatsoever to do with RMI.

  • BACK button difference between Weblogic and J2EE server

              Hi Everyone,
              I have a J2EE application implemented mainly with JSP and EJB, which can run on
              both J2EE and Weblogic Servers seperately. When running on either of them, the
              server acts as both a web and application server.
              It is my understanding that it first goes to the cache in the browser when you
              try to revisit the previous page (JSP files) by clicking the BACK button in the
              browser. If the page is there, it just displays that page from the cache. If not,
              it will go to the server to retrive (execute) that page.
              When I run my application over J2EE server and try to visit the previous page
              by using the BACK button in the browser, it does this way correctly. But when
              I run my
              application over Weblogic server, it always goes to the server and execute the
              JSP file again in the server, rather than simply retriving that page from the
              cache. If your JSP file is simply doing data retriving, that is fine. But if it
              is doing data inserting, it will insert your data again. This is not good.
              I know that the Weblogic server is mainly an application server. But I am not
              sure when it acts as a web server,
              why it works differently from J2EE which also can acts as both an pplication and
              a web server. Does anyone have any ideas or suggestions about this?
              Thanks a lot.
              -John
              

    I believe that the correct behaviour is to rerun the .jsp page unless the
              user specifically sets the header to allow the browser to cache it. That
              being said... You should never make a web application that can be broken by
              the user hitting "reload" or the browser automatically retrying. An
              application like this is very fragile and will probably break in practice.
              I suggest that you either make all your pages idempotent or you keep track
              through a hidden form field a transaction id and only allow the execution of
              any particular transaction once. As far as WebLogic not being a good web
              server, I would say that with 6.1 you get most of the management advantages
              of using a separate web server and also most of the static file performance
              you will find with apache or IIS.
              Sam
              "John Wang" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi Bruno,
              >
              > Thank you for your prompt reply.
              >
              > I think I might not explain my problem clearly. My application
              > is in developing stage now. So we are just working on a single
              > serevr which can acts as both a web and an application server.
              > Later we are going to distribute our application into a web and an
              application
              > seperately.
              >
              > As you said, it seems that my problem is because the weblogic server is
              mainly
              > an application server and does not act as a web server very well. So if I
              distribute
              > my application into both a web and an application servers, it should be
              fine,
              > since it is ok when I run it over the J2EE server. Is this correct?
              >
              > In other words, I can say that the J2EE server is configured better in its
              role
              > as a web server than the weblogic server, isn't it?
              >
              > In addition, all my JSP files are only dealing with catching
              > data from user input and displaying data. Data inserting is done
              > by EJB and JavaBeans through the JSP files. Because those JavaBeans in the
              JSP
              > files, each time when I use the BACK button, it will invoke those
              JavaBeans and
              > EJBs through the JSP files and do things like inserting in the background.
              That
              > is what I mean in my previous message.
              >
              > Thanks.
              >
              > -John
              >
              > "Bruno" <[email protected]> wrote:
              > >
              > >Hi John,
              > >
              > >You should use a real Web Server on the front side of your application.
              > >Weblogic
              > >is mainly an application server that has to be used in middle tier. But
              > >it's not
              > >a good Web Server. Like almost all J2EE application. You should use a
              > >separate
              > >web server like apache, optimised to serve static file. Furthemore, this
              > >approach
              > >will enable you to physically separate the two servers for a better
              security.
              > >Anyway, usually jsp files are dynamic files and are not intended to be
              > >totally
              > >cached (except in special cases). I think you should just use JSP to
              > >display data.
              > >If you want to do data inserting, you should use EJB or JavaBeans for
              > >that rather
              > >than JSP.
              > >
              > >Hope it helps
              > >
              > >Regards
              > >
              > >"John Wang" <[email protected]> wrote:
              > >>
              > >>Hi Everyone,
              > >>
              > >>I have a J2EE application implemented mainly with JSP and EJB, which
              > >>can run on
              > >>both J2EE and Weblogic Servers seperately. When running on either of
              > >>them, the
              > >>server acts as both a web and application server.
              > >>
              > >>It is my understanding that it first goes to the cache in the browser
              > >>when you
              > >>try to revisit the previous page (JSP files) by clicking the BACK button
              > >>in the
              > >>browser. If the page is there, it just displays that page from the
              cache.
              > >>If not,
              > >>it will go to the server to retrive (execute) that page.
              > >>
              > >>When I run my application over J2EE server and try to visit the previous
              > >>page
              > >>by using the BACK button in the browser, it does this way correctly.
              > >>But when
              > >>I run my
              > >>application over Weblogic server, it always goes to the server and
              execute
              > >>the
              > >>JSP file again in the server, rather than simply retriving that page
              > >>from the
              > >>cache. If your JSP file is simply doing data retriving, that is fine.
              > >>But if it
              > >>is doing data inserting, it will insert your data again. This is not
              > >>good.
              > >>
              > >>I know that the Weblogic server is mainly an application server. But
              > >>I am not
              > >>sure when it acts as a web server,
              > >>why it works differently from J2EE which also can acts as both an
              pplication
              > >>and
              > >>a web server. Does anyone have any ideas or suggestions about this?
              > >>
              > >>Thanks a lot.
              > >>
              > >>-John
              > >>
              > >
              >
              

  • What 's the difference between pJava and J2ME??

    Chaps,
    Whats the difference between J2ME and Pjava?
    When do we differentiate the need to choose one of these platforms?
    J2ME is also used for mobile devices and so is Pjava?
    Can any one please explain?

    PJava was one of the earlier tries by Sun at mobile devices. It is becoming the Personal Profile, which is part of J2ME. J2ME itself covers a LOT of ground.
    For more info on the relationships, read this page in the lurker's guide to j2me, and the J2ME Family diagram at the bottom:
    http://www.blueboard.com/j2me/intro.htm
    pjava is more relevant for higher end cellphones and devices like PDAs, whereas MIDP/J2ME is for basic cellphones, pagers. thus, depending on your target audience, you would pick one or the other.

  • DB-API in ABAP and J2EE

    Hello!
    I have two questions regarding the communication mechanisms between ABAP- and J2EE-Stack.
    1)Is Jco the only one solution to communicate between ABAP- and J2EE, or exist other possibilities (if Yes, is there some comparison papers: performance, advantages/disadvantages).
    2) Which similarities/differences are in the DB-communication in both Server? (e.g. each Workprocess in ABAP/Serverprocess in J2EE<--> DB-Process)
    Which DB-API is used in both stacks?
    Thank You!
    Regards

    Hi, Peter!
    For both languages - ABAP and Java - SAP offers a Dictionary (for definition of database objects) and Open SQL (for database independency), you may also in both languages embed static SQL scripts into you code (via SQL/J in Java).
    For Java there' s the Persistence-Framework offering three support levels, Vendor-JDBC, Native and Open SQL the last one guaranteeing the maximum support. You may in Java access data - via JDBC and SQLJ - in a relational or - via EJB/CMP or JDO - in a object-relational way.
    Performance-Features like Table-Buffering exist also in both stacks.
    Please have a look at <a href="http://help.sap.com/saphelp_nw2004s/helpdata/de/61/fdbc3d16f39e33e10000000a11405a/frameset.htm">Developing Java Persistence</a> for more information regarding the Java-Part.
    Regards,
    Thomas

  • J2ME and 802.11b?

    I'm planning to make wireless P2P between PDAs and PC using WiFi and J2ME.
    Are there any issues between J2ME and WiFi that I should know about?
    How difficult is it to make such a network?
    Is J2ME compatible to most PDAs?
    Can J2ME be used for an app on a PC?
    I need all the help I can get. I am at your mercy. =)

    Are there any issues between J2ME and WiFi that I
    should know about?I'm guessing you will be using Sockets, Nokia phones, and sockets don't get on.
    Is J2ME compatible to most PDAs?Sun have a PalmOS J2ME JRE, Symbian/Psion have a J2ME JRE and I've seen a MS Windows CE/PocketPC J2ME JRE about, Google knows all.
    Can J2ME be used for an app on a PC?You would be better off writing a generic back end, then a J2ME LCDUI interface and a Swing/AWT/SWT interface, but I've seen the javax.mobileedition packages about for J2SE, or you could use a phone emulator.
    I need all the help I can get. I am at your mercy.
    =)I think one of the optional packages does P2P, I can't remember which thou.

  • Encrypted L3 Communications Between LAP and WLC?

    Hi All,
    I am working with a client that wants to put LAPs remote to their WLC (a 4402). The rub is that the communications between the LAP and WLC must be secure even across their private WAN! I have a couple of resulting questions if anyone is able to help;
    I can't find out if and what encryption method is (is it AES etc.?) used on the backhaul between LAPs and the WLC and what's involved?
    Terminology may be wrong here, this is not a wireless mesh, just conventional LAP to WLC
    The client's WAN is already encrypted (IPSec VPN over VPLS) in parts - what's the consequence of running AP<-->WLC with end-to-end encryption (if possible) over a WAN with IPSec, i.e. double encryption?
    Strange but true - any pointers will be much appreciated.... Phil.C

    With a 4400 series controller the control traffic between the AP and controller is already AES encrypted.  The user traffic is not encrypted.  If you use a 5508 controller all traffic between the AP and controller is AES encrypted.
    As for running the traffic through a VPN, that should work.  The issue I typically see with this is with the MTU.  The controller will drop any packets with a data payload less than 32bytes.  Depending on the MTU over the VPN I have seen packets get fragmented and this to be an issue.  If you are using one of the CAPWAP versions (5.2 or newer) dynamic MTU discovery is part of the protocol and this MTU issue really doesn't exist.

  • Encrypting network between computer and printer

    I would like to encrypt a network between computer and printer but I see references to ASCII and hexadecimal which I don't understand. Please can anyone explain in simple terms how to go about this?

    The picture you showed is the settings for a WiFi network. There are four main types of encryption 40bit WEP, 128bit WEP, and WPA or WPA2. (I am ignoring WPA2 Enterprise as it is unlikely the printer is capable of this.)
    WEP and WPA and WPA2 have all been cracked although it is still the case that WPA2 is better than WPA which in turn is better than WEP. On that basis while using eny of these encryption schemes is better than nothing if you are really concerned with security you would be better using an Ethernet cable.
    WPA2 Enterprise is still somewhat secure but as its name suggests is not general suitable for home or small office setups.
    With regards to ASCII and Hex, WEP passwords can be entered in either style, they would in fact be the same just entered differently. It is possible to convert an ASCII value to Hex and vice-versa.

  • Are the Facetime Video and Audio encrypted between users?

    Are the Facetime Video and Audio encrypted between users?

    I don't know the answer but I hope someone who does will respond. I know Skype is encrypted and I know Google talk is not. I am a psychotherapist, and I use webcam to conduct therapy occasonally, and naturally, I need an encrypted audio/video to help maintain client confidentiality. I would love to use FaceTime. Despite some on this forum, I use it with Lion and I have less problems with FaceTime than I do Skype. But I can't use it for my clients until I know for sure that it is encrypted. Anyone out there with a knowledgable answer for both Cephsaiii and me?

  • Difference between web policy agent and j2ee Policy agent ?

    Difference between web policy agent and j2ee Policy agent ?

    http://docs.sun.com/app/docs/doc/820-5816/ghscr?a=view

  • Difference between Java EE 5 Platform and J2EE 1.4 Platform

    What are differences between Java EE 5 Platform and J2EE 1.4 Platform. How we can choose one for a specific environment.
    regards

    dont be phsyco. MAy be i m good in other topic than
    u. Its time restriction i am facing. OK leave it,
    dont reply any help. its ok.
    ake careEvery culture has rules under which it operates. This one is no exception. It is the unspoken policy of the forum regulars to heap scorn on people who demonstrate an unwillingness to do things for themselves, or to at least put forth an effort. Therefore you have been the target of a certain amount of vitribution. Perhaps you are the lazy worthless git your posting implies perhaps not. None of my business and I don't really care.
    You were pointed to a source of the information you asked for and rather than saying thank you, you demand that the rest of us sacrifice our time to synthesize the information and provide you with an answer about which we actually have very little information, namely what in the bloody <expletive deleted> you're interested in? Oh wait you did say you wanted us to tell you how to pick one or the other.
    And you still can't see why you would become the target of a certain amount of ire on the part of the forum regulars. Might want to give that one some thought.
    But now to your question, well sort of, I can give you a synopsis of what's changed between 1.4. and EE 5, but if I do that what you will know is that one person told you something. If you use the resources that you've already been given and arrive at your own conclusions and questions you will both know what you found and have a frame of reference with which to address specific questions relating to specific change topics. If you do that, most of us here will be more than happy to discuss adnauseum the ramifications of any and all of the changes.
    These are the kinds of topics that we will happily get wrapped up in, but after we've spent our effort and time learning the differences and how they relate to what we're doing why should we concern ourselves with someone who wants a spoon fed answer? Consider this, if you never move beyond bottle fed pablum (formula) you wouldn't be able to tolerate more robust food like say a steak. If you never learn to derive your own answers to questions like this, you will never move forward as a developer.
    Now that I've ranted for a while. Read the material you've already been pointed to, come back with comments and questions of your own and we'll be happy to help and comment.
    Cheers,
    PS.

  • CF Installations :Key differnces between Multiserver configuration and J2EE Configuration

    Hi,
    Can anyone give the important differences between Multiserver
    configuration and J2EE Configuration installations?..

    Hello Dalibor,
    While the service account user object has Use DES selected it would appear your user session is still sending the AS Java an RC4 service ticket.  This might occur if your user had requested a service ticket before Use DES was selected, or before that setting had replicated to the appropriate domain controller.  The fix might be as simple and logging out and logging back in now that some time has passed.
    You could also download the Microsoft kerbtray utility and inspect the service ticket enc type to validate this.  kerbtray can also be used to clear old tickets and is generally useful for troubleshooting this kind of thing.
    Thanks!
    Kyle

  • Transfer from j2me to j2ee

    Can anyone say is it possible to switch from j2me to j2ee later in the carreer????

    Can anyone say is it possible to switch from j2me to
    j2ee later in the carreer????he he he...
    Let me tell you something buddy... the way the mobiles are becoming today, it is not far that the distinction between j2ee and j2me will be minimized, if u are talking about enterprise business apps made for mobiles. You can not probably build an enterprise app for mobile without the j2ee counterpart of the j2me app. And as I told u, as the world is heading today, people needs all info at his/her hand, so they will need it in their mobile only and how anything other than an ME app can serve their purpose that too with a rich GUI !!!
    SUN once told, Net is the computer !! I'm waiting for the day when somebody will say MOBILE IS THE COMPUTER !!!
    Regds
    SD

Maybe you are looking for

  • Adobe Media Encoder has encountered an error. (please help... just few hours to deadline)

    1.                                                                                                                              2.   2. after screen 2 nothing happens again  (it's cs4)

  • Deploy package with Java Stored Procedure without JDeveloper

    I have a set of Java Stored Procedures deployed as a package on a Oracle 8i server. Everything works fine in my development environment, and now I would like to deploy the same package in the customers runtime environment. Both environments are runni

  • Wierd JComboBox

    Hello, In my application, I open a JComboBox inside a JPanel. But the combo box is wierd : the top line is badly drawn. In non editable mode, the current text is drawn, but the arrow is not. In editable mode, nothing is drawn, just a gray line. But t

  • Libretto U100 looses often connection to the Wlan hub

    Hi I am having problem with my wireless network card. I am often loosing connection with the hub. I read on another forum that it maybe a good idea to update the drivers. I have never done this before and I want to ensure I do it correctly. Can you p

  • Cannot print checks "while another user is accessing the account"

    I am trying to print couple of checks but I receive this message: u201CCannot print while another user is accessing the account message [854-235]u201D I check there is no one using the system just me and still same issue. Thanks.