File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.

And today I stumbled upon The Legion Of Bouncy Castle:

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

Joined: Aug 11, 2007
Posts: 4659

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

Joined: Apr 14, 2008
Posts: 26
"Beginning Cryptography with Java" by David Hook has good info on the algorithm.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: AES encryption with JCE
jQuery in Action, 3rd edition