Jump to content

Forgot Password Feature


fri3ndly

Recommended Posts

From what i understand you can converst md5 back to its orginal form. Thats the whole point of it. To encrypted the information so no one can understand it.

 

When you enter you password to login you encrypt it. Then you check the database to see if the encryptions match. Therefore if anyone gets into your database they will still non the wiser.

Link to comment
Share on other sites

You can't as far as i'm aware. That's the whole point in encrypting passwords, so that if someone gains access to your database, they can't steal the information. If you could the script required would probably be a fairly hefty one.

 

Better option is to get the email to reset their password to a temporary randomly generated string, and update the database to that effect, then get them to change their password straight away to something they'll remember.

Link to comment
Share on other sites

Thats what I thought....

 

So how would this feature work then?

 

At the moment it looks up the users e-mail address and returns their details, along with a hashed password.

 

The hashed password is always the same, it doesnt vary each time therefore I see no reason why it couldnt be reversed, but if not how do other PHP systems (eg. Joomla) achieve this?

 

Thanks, Simon

Link to comment
Share on other sites

You can't as far as i'm aware. That's the whole point in encrypting passwords, so that if someone gains access to your database, they can't steal the information. If you could the script required would probably be a fairly hefty one.

 

Better option is to get the email to reset their password to a temporary randomly generated string, and update the database to that effect, then get them to change their password straight away to something they'll remember.

 

Ah thats a great idea, I hadn't thought of that. Thank you!

 

 

So now..... How do I develop a 'temporary randomly generated string'? :D

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.