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

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

    Encrypting instead of hashing means that you have to store the decrypt key, which means reduced security for your app. Reset their password, and send them the new one.

提交回复
热议问题