• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Encryption with Java

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone recommend a good Java web resource on encrypting data?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I usually find the examples at JavaAlmanac.com to be very useful.
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll move this to the Security forum for a more focussed audience.
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here you have a great API for encryption, and they provide code examples:
The Legion of the Bouncy Castle
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What APIs you are going to use? SUN's JCE or others?
Due to the export law, if you use SUN's JCE, there is no RSA algorithm, and thus, you may need other packages, like Cryptix.
You may goto Cryptix's site at
https://www.cypherpunks.to/~cryptix/
You can download the APIs free, and there are some sample codes. In addition, they provided newly added algorithms as well, like ECC and AES, in addition to the classic algorithms, RSA, DES, etc.
Nick
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe most people use the standard JCE APIs with the BouncyCastle providers. It's standard, free, and generally good quality based on what people around me have been saying.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cryprix is one of the JCE provider, with a clean Java implementation. In the past, I think around 3-4 years ago, I tend to use OpenJCE, however, the project finally closed.
After that, I changed to use Cryptix. You can use all the APIs provided in JCE, and in addition, it also provides you the new encryption algorithms, such as ECC and AES.
I havent used the one suggested by Lasse before, and thus, I cannot make any comments on it. Anyway, it is just another option for studying.
Nick
 
Author
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My latest book, "Enterprise Java Security" published by Addison-Wesley has tons of examples showing how to encrypt data and use cryptography in general.
Hope this helps,
Marco Pistoia
reply
    Bookmark Topic Watch Topic
  • New Topic