File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes encrption and decryption using cipher for Java ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "encrption and decryption using cipher for Java ME" Watch "encrption and decryption using cipher for Java ME" New topic
Author

encrption and decryption using cipher for Java ME

mak zoe
Greenhorn

Joined: Mar 21, 2010
Posts: 8
I am currently working on the encrption and decryption on Java ME
I search the net and found something similar using Java SE
However, the point is that... in Java ME, I can't found a class "keyGenerator" (in startApp)
(I use netbean and it's underlined in red)
What should I do for it? am I missing any unimported class??

The following is the code I am working on,,,
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
I'm not sure if JCE works on JME, but you have the KeyGenerator import commented out without which the compiler can't know about the class.

If JCE does not work on JME, check out the BouncyCastle API - it has a version that runs on JME.


Ping & DNS - updated with new look and Ping home screen widget
mak zoe
Greenhorn

Joined: Mar 21, 2010
Posts: 8
Ulf Dittmer wrote:I'm not sure if JCE works on JME, but you have the KeyGenerator import commented out without which the compiler can't know about the class.

If JCE does not work on JME, check out the BouncyCastle API - it has a version that runs on JME.


I comment it out as it is not found in the library.

I tried BouncyCastle... but it requires signning...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
This may help: http://www.ibm.com/developerworks/java/library/wi-secure/, although the fact that there is no JCE provider for JME by BouncyCastle indicates that there may be other problems. The BC lightweight API may be your best hope.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: encrption and decryption using cipher for Java ME
 
Similar Threads
Error "Blocking call performed in the event thread"
Could I have broken the law by using SunJCE?!!
How to convert this into a form?
how to send email from j2me using Servlets
unable to create form.