Hi, I need to implement text encryption in my program. Though ive read about encryption before in passing I dont know much about the different types so I was hoping someone could help me pick one.
Thanks & Regards
Ayyappan
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35224
7
posted
0
The Java API for encryption/decryption is called "JCE". The http://faq.javaranch.com/java/SecurityFaq has a number of links regarding that, including articles that have sample code for using the DES and AES ciphers in Java.
I'll move this to a more appropriate forum, since it has nothing to do with JSP. Please CarefullyChooseOneForum.
Originally posted by greg stark: Don't go to that link! The code there contains atrocious and immoral exception handling, and just serves to poison the thinking of java beginners.
Listen to Greg. That code is sinful. Especially the encrypt and decrypt routines. Never do it that way.