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

前端 未结 3 637
半阙折子戏
半阙折子戏 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:25

    http://php.net/manual/en/function.crypt.php

    crypt — One-way string hashing

    there is no reverse operation of crypt. The best you can - reset password and send it to user.

提交回复
热议问题