<?php $pwd = ‘123456‘; $p1 = password_hash($pwd, PASSWORD_DEFAULT); if(password_verify($pwd, $p1)){ echo $p1.‘<br>‘; echo ‘登陆成功‘; }
PHP-password_hash处理
原文:https://www.cnblogs.com/phper8/p/9038726.html