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:
  • (string) Hash of $data.
Defined at:
Change Log:
  • 6: .

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.

Related Functions

wp_slash, wp_fast_hash, wp_head, wp_unslash, wp_dashboard

Top Google Results

User discussions

wpseek mobile