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

后端 未结 5 1408
我在风中等你
我在风中等你 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:33

    You got a 1/100 chance of recovering that password (dictionary method) given the length of the password. I won't recommend it.

    It's better to generate a new random password, and send it to the user's email.

提交回复
热议问题