unfortunately, we’ve been requested to offer our users the ability to get an email sent to their registered account, their password .. if they have forgotten their password.
“Click here if you have forgotten your password”
So – this means i need to be able to DECRYPT the password. I don’t like it, but that’s the requirements. I’m used to use a SALT and HASHING a password with SHA1. then storing the salt and the hashed password into the repository.
Not sure what I should be doing if I wish to store the password which can be decrypted now. Is it more or less the same, but I should use AES instead?
Would love some help (and preferably code samples in .NET).
Cheers!
NOTE: Please don’t turn this thread into a topic about HASHING vs DECRYPTING vs OpenAuth.
You can do one of the following:
If you go with option 1 or 2, you don’t need to be able to decrypt the password, so you can use a hash + salt, which will be the most secure method.