• 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

encrption and decryption using cipher for Java ME

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,,,
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
mak zoe
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic