File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Implementing encryption and decryption in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Implementing encryption and decryption in java" Watch "Implementing encryption and decryption in java" New topic
Author

Implementing encryption and decryption in java

Susmitha Metlapalli
Ranch Hand

Joined: May 16, 2007
Posts: 44
Hi,

I need to implement encryption and decryption in java.

Please let me know which encryption method can be implemented. MD5 or DES

I could find MD5 encryption sample java code. But for decryption i couldnot find.

Please help me in proceeding further.

Thanks,
Susmitha.
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1666
    
    7

MD5 isn't an encryption algorithm, but a one-way cryptographic hash function. You can't decrypt the resulting hash value.
For encryption / decryption you'd need a symmetric key algorithm like DES, which you also mentioned in your starting post.
The Java Cryptograhpy Extension reference guide should provide you with the information you need to get going.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

Also see this faq. It might help.


http://muhammadkhojaye.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Implementing encryption and decryption in java
 
Similar Threads
Please send me one example of Encryption/Decryption
Data Encryption & Decryption in Java
Data Encryption & Decryption in Java
How to Decrypt password
Encryption/decryption using java