Java321技术网

标题: wordpress登录注册密码加密函数 [打印本页]

作者: luozhangyou    时间: 2017-5-24 22:41
标题: wordpress登录注册密码加密函数
function wp_hash_password($password) {
    global $wp_hasher;

    if ( empty($wp_hasher) ) {
        // By default, use the portable hash from phpass
        $wp_hasher = new PasswordHash(8, true);
    }

    return $wp_hasher->HashPassword( trim( $password ) );
}

在文件:wp-includes/pluggable.php 这里面,包括注册登录的部分函数
--------------------------------------------------------------------------------------









欢迎光临 Java321技术网 (https://java321.com/) Powered by Discuz! X3.3