Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AES encryption with JCE

 
Z Sugiarto
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A question to anyone familiar with the topic,

I have a class that uses the JCE to encrypt and decrypt a file. This works OK.
http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html

And today I stumbled upon The Legion Of Bouncy Castle:
http://www.bouncycastle.org/java.html

Question is, how good are their implementation as compared to JCE ? page states that they are:

- A lightweight cryptography API.
- A provider for the Java Cryptography Extension and the Java Cryptography Architecture.
- A clean room implementation of the JCE 1.2.1.

Has anyone tried using these ? reviews / comments / opinions ?
[ August 24, 2008: Message edited by: Zenikko Sugiarto ]
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BouncyCastle is a good implementation of the JCE. Its primarily a response to the stupid ITAR rules in the US that make it really difficult to export strong crypto. The rules have been made less draconian in recent years.

In the old rules, the US Department of Commerce assumed that only programmers in the US were smart and talented enough to write crypto code. So some companies were created outside the US to allow non-US programmers to make money selling crypto code.

I have no idea if it is, or is not, lightweight
 
Mayur Somani
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Beginning Cryptography with Java" by David Hook has good info on the algorithm.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic