lucerias Posted October 18, 2006 Share Posted October 18, 2006 I use crypt to encrypt the password of user and i need to send a password recovery email to the users when they ask for it. May i know how to decrypt the password stored in the database from encrypted form to the original string? Thank you. Quote Link to comment Share on other sites More sharing options...
skarecrow Posted October 18, 2006 Share Posted October 18, 2006 The PHP crypt() function uses a one-way encryption algorithm. If you crypt the password with this function you could brute force it but I dought anyone would take that route for forgotten passwords.Although you cannot un-encrypt the password you can easily generate them a new password and send them the new password via email, or you could even set up a temporary password they can login with. Once they login they can simply change there password.Hope this helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.