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

前端 未结 8 991
眼角桃花
眼角桃花 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:56

    If you're running an internal private site with no security issues, just store passwords with XOR 0xAD each byte. Otherwise, reset is the only option.

提交回复
热议问题