I Have md5 encrypted password, how to give the password to user when he uses “Forgot password”?

后端 未结 5 1425
我在风中等你
我在风中等你 2021-01-13 04:50

I have database entry for password in md5 format, but when user uses the \"Forgot password\" then how can i give him/her the desired password?

5条回答
  •  深忆病人
    2021-01-13 05:43

    You can't do that from an MD5 hash; nor should you be able to. Password recovery ought to be intractable.

    The usual process is to send a password-reset token (URL) to their email address so that the user can choose a new password.

提交回复
热议问题