Forum Moderators: coopster
So...if one wanted to put a link on a log-in page that says "forgot your password" - which, when clicked, would automatically email the recipient their password - how is this done without keeping a copy of the unencrypted password in the database?
I've seen this "forgot your password" link in many other sites, but how do they accomplish automatically sending a "un-hashed" password if it's already incrypted?
Do these other sites use some other kind of password encryption which can be decrypted on the fly?
Neophyte
Others handle it by genererating a new password and e-mailing that to the registered e-mail address (and updating the user database with the new encrypted password).
The user can then log in and set the password to whatever they want.