How to output MD5 hashed password in plain text?

前端 未结 7 1388
再見小時候
再見小時候 2020-12-12 07:44

I have passwords for members on a site encrypted using MD5 and stored in the database. I want to implement a lost password functionality where the user will be emailed their

7条回答
  •  旧巷少年郎
    2020-12-12 08:33

    No

    You can't recover the original password from the MD5 hash. It's a one way hash function.

    Also

    You shouldn't be providing them with the plain text password. What you should do instead is either allow them to change the password, or generate a random one for them to use and then force them to change it.

提交回复
热议问题