wood burning stoves*
The moose likes Java Micro Edition and the fly likes Encryption with Midlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Encryption with Midlet" Watch "Encryption with Midlet" New topic
Author

Encryption with Midlet

gnana sekar
Greenhorn

Joined: May 29, 2006
Posts: 4
Hi,
Iam sekar working in j2me, i want to do (Asymmetric)encryption and decryption in my midlet, i tried with BouncyCastle and i got output fine with symmetricKeys.
When i tried for AsymmetricKeyPair generation the runtime(compiled fine)error shown as
"java.lang.NoClassDefFoundError: java/security/SecureRandom: Cannot create class in system package"

what i have to do?

One more question: I want to get the public key (was generated by servlet) from server as inputstream in midlet. is it possible getas Publickey fron stream?
its urgent.. any help please.
gnana sekar
Greenhorn

Joined: May 29, 2006
Posts: 4
hi,
I think j2me does not have the security packages like j2se.
Then how to achieve the Asymmetric encryption with j2me, but i believe j2me have any other way for this.
any of you have the idea...
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

"Lion JavaME"

Please clikc on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real last names. We do close accounts that continually violate our policy.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Pankaj Bisaria
Greenhorn

Joined: May 20, 2006
Posts: 4
Hello

Please see this tutorial.I think it will help you.

http://www-128.ibm.com/developerworks/edu/wi-dw-wi-encrypt-i.html

Bye
gnana sekar
Greenhorn

Joined: May 29, 2006
Posts: 4
Thaks for interest,

i already did encryption with servlet and it work fine.

i want to do the encryption with MIDlet using the key was generated by servlet.
while try this i got error like.
what may wrong with my procedure or any change i have to made with my bouncy castle or wtk ???
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11256
    
  16

"gnanasekar"

Our naming policy requires TWO names... a first name, a space, and a last name. Accounts that fail to meet this requirement can and will be closed.

Please update your name to comply.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Encryption with Midlet