wp_hash() – Get hash of given string.
You appear to be a bot. Output may be restricted
Description
Gets hash of given string.
Usage
$string = wp_hash( $data, $scheme );
Parameters
- $data
- ( string ) required – Plain text to hash.
- $scheme
- ( string ) optional default: auth – Authentication scheme (auth, secure_auth, logged_in, nonce).
Returns
string Hash of $data.
Source
File name: wordpress/wp-includes/pluggable.php
Lines:
1 to 5 of 5
function wp_hash( $data, $scheme = 'auth' ) { $salt = wp_salt( $scheme ); return hash_hmac( 'md5', $data, $salt ); }