wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_hash › WordPress Function
Since2.0.3
已弃用n/a
› wp_hash ( $data, $scheme = 'auth' )
参数: (2) |
|
返回: |
|
定义在: |
|
文档: |
Gets hash of given string.
源码
function wp_hash( $data, $scheme = 'auth' ) { $salt = wp_salt( $scheme ); return hash_hmac( 'md5', $data, $salt ); } endif; if ( ! function_exists( 'wp_hash_password' ) ) : /** * Creates a hash (encrypt) of a plain text password. * * For integration with other applications, this function can be overwritten to * instead use the other package password checking algorithm. * * @since 2.5.0 * * @global PasswordHash $wp_hasher PHPass object. * * @param string $password Plain text user password to hash. * @return string The hash string of the password. */