IntelliJ Java IDE
The moose likes Security and the fly likes Encryption with Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "Encryption with Java" Watch "Encryption with Java" New topic
Author

Encryption with Java

Matt Wil
Greenhorn

Joined: Apr 05, 2004
Posts: 23
Can anyone recommend a good Java web resource on encrypting data?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
I usually find the examples at JavaAlmanac.com to be very useful.


Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7231

I'll move this to the Security forum for a more focussed audience.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
Here you have a great API for encryption, and they provide code examples:
The Legion of the Bouncy Castle
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
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


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
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

Joined: Nov 07, 2003
Posts: 4982
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
Marco Pistoia
Author
Greenhorn

Joined: Apr 19, 2004
Posts: 27
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


Marco Pistoia, Ph.D.<br /><a href="http://www.research.ibm.com/people/p/pistoia/" target="_blank" rel="nofollow">http://www.research.ibm.com/people/p/pistoia/</a>
 
IntelliJ Java IDE
 
subject: Encryption with Java
 
Threads others viewed
zipping as self extracting exe
WA #2 ..... word association
class
c++ or Java--your suggestions please
J2EE
IntelliJ Java IDE