wp_hash
wp_hash ( $data, $scheme = 'auth', $algo = 'md5' )
Parameters:- (string) data Plain text to hash.
- (string) scheme Authentication scheme (auth, secure_auth, logged_in, nonce).
- (string) algo Hashing algorithm to use. Default: 'md5'.
Returns:Defined at:Change Log: - Introduced in WordPress: 2.0.3
- Deprecated in WordPress: —
Description
Gets the hash of the given string.The default algorithm is md5 but can be changed to any algorithm supported by
`hash_hmac()`. Use the `hash_hmac_algos()` function to check the supported
algorithms.