tags:

views:

152

answers:

3

hi to every one . I want to ask a small question.. I need to write program that encrypt text with 32-bit algorithm using Java . so what is the appropriate package or library to do that ?

thanks for all

A: 

Have a look at the java security product (library) form the Technical University Graz (Austria). http://jce.iaik.tugraz.at/

Unfortunately it seems like their product is not for free any more. So I don't know if this is an option for your problem.

Flo
+1  A: 

Did you mean the javax.crypto package? From the JDK 6u10 javadoc found here.

Bob Cross
thanks BOB but how can I know if it is support 32-bit algorithm?
mjd
+4  A: 

The javax.crypto package, as Bob mentioned would be your best bet, since it's part of the Java API. With that said, I know that the implementation that comes with the JDK (at least for certain algorithms, and in older version of the JDK) was rather slow.

If you're looking for alternate implementations (that still comply to the javax.crypto spec) have a look at Bouncy Castle:

http://www.bouncycastle.org/

Jack Leow
We've used the bouncy castle implementations for years, and have consistently been impressed with the quality of their code. Highly recommended.
Kevin Day