0

Hi There,

I'm currently creating a form and inserting the details into a database, the problem i came across is when the php checks and inserts the data i made the password md5

$password = md5($_POST['password']);

However if the user wants to request his password via email how will this be achieved?
Will the user basically get the hashed version and use that to login or is there a method of reverting the password back to the text he initially inputted ?

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by emhmk1
0

You should make a new password and send that to them. Thats how you have to do it. It would defeat the purpose of hashing if you could get the orginal text back.

0

Cheers KKeith29

Thanks for the reply and i see the point, it does make sense!

Cheers...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.