I want to encrypt and decrypt a password in Java and store into database in the form of encrypted.
It will great if it is open source. Any suggestions / pointers ?
I want to encrypt and decrypt a password in Java and store into database
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EDIT : this answer is old. Usage of MD5 is now discouraged as it can easily be broken.
MD5 must be good enough for you I imagine? You can achieve it with MessageDigest.
MessageDigest.getInstance("MD5");There are also other algorithms listed here.
And here’s an third party version of it, if you really want:
Fast MD5