Encrypt and decrypt issue

Would like to encrypt a password and save it in a file/database, and then get the encrypted password in the file and decrypt it. Could any guru please show me a simply example on how to do that in Java?
Who is Participating?
CEHJConnect With a Mentor Commented:
http://www.code2learn.com/2011/06/encryption-and-decryption-of-data-using.html is the sort of thing you'd need. Bear in mind that storing the hashed password (so that NO-ONE can decrypt it) is the best practice
ValeriConnect With a Mentor Commented:
CEHJ i right, you must use one-way hash encryption. This is a strong obligation when dealing with passwords.
jl66Author Commented:
Great tips. Thanks a lot.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.