password_hash 与 password_verify

password_hash(要加密的密码,PASSWORD_DEFAULT);

string password_hash ( string $password , int $algo [, array $options ] )

创建密码的散列(hash)

 

bool password_verify ( string $password , string $hash )

验证密码是否和散列值匹配

posted on 2018-03-21 16:47  _zxd  阅读(252)  评论(0编辑  收藏  举报