Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: wp_salt() | Returns a salt to add to hashes. |
Get hash of given string.
(string) (Required) Plain text to hash
(string) (Optional) Authentication scheme (auth, secure_auth, logged_in, nonce)
Default value: 'auth'
(string) Hash of $data
wp_hash( $data, $scheme );
File: wp-includes/pluggable.php
function wp_hash( $data, $scheme = 'auth' ) { $salt = wp_salt( $scheme ); return hash_hmac( 'md5', $data, $salt ); }
Version | Description |
---|---|
2.0.3 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_hash