aspose file tools*
The moose likes Security and the fly likes AES encryption with JCE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "AES encryption with JCE" Watch "AES encryption with JCE" New topic
Author

AES encryption with JCE

Zenikko Sugiarto
Ranch Hand

Joined: Jan 09, 2005
Posts: 58
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

Joined: Aug 11, 2007
Posts: 4658
    
    5

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

Joined: Apr 14, 2008
Posts: 26
"Beginning Cryptography with Java" by David Hook has good info on the algorithm.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AES encryption with JCE