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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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
489 views