Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encryption with Midlet

 
gnana sekar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
Pankaj Bisaria
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12196
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic