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?
jl66Asked:
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
0
 
ValeriConnect With a Mentor Commented:
CEHJ i right, you must use one-way hash encryption. This is a strong obligation when dealing with passwords.
http://www.devbistro.com/articles/Java/Password-Encryption
0
 
jl66Author Commented:
Great tips. Thanks a lot.
0
 
CEHJCommented:
:)
0
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.