Better way save password in mysql which can be decrypted also using php

前端 未结 8 1039
眼角桃花
眼角桃花 2021-01-04 08:53

I am currently using md5 function to encrypt my password and save to mysql db which can not be decrypted.

Now my user want that when they forgot password, they shou

8条回答
  •  悲&欢浪女
    2021-01-04 09:34

    Don't do that, it will compromise your security! The whole idea of one way encryption is that if your database is hacked you won't face the problem that all your users passwords will be known alongside with their email addresses!

提交回复
热议问题