How can I decrypt password string in PHP which was encrypted with crypt?

前端 未结 3 645
半阙折子戏
半阙折子戏 2020-12-22 10:18

How can I decrypt a password string in PHP which was encrypted with crypt?

$salt = substr($_POST[\'password\'], 0, 2);  
$password = crypt($_POS         


        
3条回答
  •  渐次进展
    2020-12-22 10:28

    This is probably not the answer you are looking for, but this is just a more security wise practice.

    Password should be One Way Hashed, when the user ask for a new Password, you should send him a temporary random password that he will change on next login.

提交回复
热议问题