Jump to content

MYSQL HELP..MD5 lostpassword generate


mohdshaiful

Recommended Posts

help...!!!  problem about my site is password database store in MD5.

i test my website forget password form...

 

then i get the mail... why it sent like this

 

LoginId : epul2

Password: 39732a1d20b2361fd7730e06eb2765f1  <<<md5

 

 

how to fix it ?

Link to comment
Share on other sites

If you mean you want to convert MD5 back to its orginal, it is almost impossible.

 

they usually RESET the password for users who forgot theire passwords. so it is better to make a script to generate a temporary password and convert it into MD5, while sending the temporary password to the user's email (at the same time the md5 equivalent of that password should be stored in the database).

Link to comment
Share on other sites

You can't send them their password because it's encrypted by md5. It's a 1-way encryption which cannot be reversed.

 

What you need to do is reset their password, and send them the unencrypted version before entering the md5 version into the db. Then on login get them to set another password.

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.