Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to encrypt/decrypt passwords?

843810Feb 14 2003 — edited Jul 5 2007
Hi!
I want to store some usernames and passwords in a file.
I want to use the MD5 or the SHA-1 algorithm.
What classes in the JAVA Cryptography API should I use?
I thought about a MessageDigest, but then I recognized that I can not decrypt the data with a MessageDigest! What else can I use?

I would be very glad if you could give me some hints.
Thx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2007
Added on Feb 14 2003
17 comments
615 views