PHP retrieving a hashed password from database

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
remyx187
Forum Newbie
Posts: 8
Joined: Tue Apr 29, 2008 11:49 am

PHP retrieving a hashed password from database

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: PHP retrieving a hashed password from database

Post by RobertGonzalez »

You don't fetch the password you have the user reset their password.
Post Reply