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. Link to comment https://forums.phpfreaks.com/topic/24296-decrypt-the-string/ 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! Link to comment https://forums.phpfreaks.com/topic/24296-decrypt-the-string/#findComment-110461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.