Gets hash of given string.
$datastringrequired
$schemestringoptional
Default:'auth'
wp_hash( $data, $scheme ); function wp_hash( $data, $scheme = 'auth' ) {
$salt = wp_salt( $scheme );
return hash_hmac( 'md5', $data, $salt );
}
| Version | Description |
|---|---|
| 2.0.3 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_hash