Page 1 of 1

PHP retrieving a hashed password from database

Posted: Tue Apr 29, 2008 11:54 am
by remyx187
Hi,

I am trying to build a secure "forgot your password" function in php but I come across the fact that a hashed password (md5 or sha1) cannot be decrypted thus i cannot retrieve it for a user in case one forgot it. What are the ways of going around this issue?

thanks in advance.

Re: PHP retrieving a hashed password from database

Posted: Tue Apr 29, 2008 2:22 pm
by RobertGonzalez
You don't fetch the password you have the user reset their password.