PHP:How to send the original password to the user when he clicks forgot password which is encrypted by using md5?

后端 未结 5 1699
野的像风
野的像风 2020-11-29 09:04

I am using md5 to encrypt the passwords in my project.

When user clicks on forgot password and submits his email,I have to send His password to him.

But the

5条回答
  •  时光说笑
    2020-11-29 09:38

    One particular purpose (among others) of a hash value is that it's irreversible, if it works perfectly.

    The most common way for a "forgot password" functionality is, to generate a new password and tell your user to change it as soon as possible.

提交回复
热议问题