How to output MD5 hashed password in plain text?

前端 未结 7 1396
再見小時候
再見小時候 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:38

    1. You shouldn't use MD5. Use sha1 and use also a salt, there is a lot of information on the internet.

    2. The purpose of hashing the password is exactly that. It is used because the original password can't be gotten (theorically) so the password would be saved securily and it can be used to check if the password is correct easily.

    3. Allmost all websites chose to generate a new password and send it by email as the forget password mechanism.

提交回复
热议问题