Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing encryption and decryption in java

 
Susmitha Metlapalli
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also see this faq. It might help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic