Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Encryption with Midlet

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ???
 
lowercase baba
Posts: 13091
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic