Q:

Best Algorithm to encrypt password

I want to encrypt the password & store the encrypted value in MySQL database. What algorithm is the best way to go for encryption in Java?
For each user, I've userid, useremail field as well & for all these users, I need algo to encrypt password.
Note: I should be able to decrypt the password as well, since one of our support page shows the password only to support team (Legacy page that cannot be removed).
Thanks

A:

There are standard algorithms for encrypting passwords. You can use
PBEWITHSHA256AND256BITAES-CBC-BC from BouncyCastle. 

