Hello:
I have a registration form where the user enters a username and password. The password is encrypted and then inserted into a database table.
Now, if a person forgets their password, how do I extract the encrypted password from the database to appear as the original that was typed?
Example: user registers kermit as password. It is encrypted as encryptedword. User loses the password instead of sending an email with encryptedword as the password, the email should state kermit.
Or, is it best to just give the user a brand new password?
Thanks in advance.