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 ?

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.

Cheers KKeith29

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

Cheers...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.