wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_hash › WordPress Function

Desde2.0.3
Obsoleton/a
wp_hash ( $data, $scheme = 'auth' )
Parâmetros: (2)
  • (string) $data Plain text to hash.
    Required: Yes
  • (string) $scheme Authentication scheme (auth, secure_auth, logged_in, nonce).
    Required: No
    Padrão: 'auth'
Retorna:
  • (string) Hash of $data.
Definido em:
Codex:

Gets hash of given string.



Funções relacionadas: wp_slash, wp_head, wp_unslash, wp_dashboard, wp_rss

Fonte

function wp_hash( $data, $scheme = 'auth' ) {
		$salt = wp_salt( $scheme );

		return hash_hmac( 'md5', $data, $salt );
	}
endif;

if ( ! function_exists( 'wp_hash_password' ) ) :
	/**
	 * Creates a hash (encrypt) of a plain text password.
	 *
	 * For integration with other applications, this function can be overwritten to
	 * instead use the other package password checking algorithm.
	 *
	 * @since 2.5.0
	 *
	 * @global PasswordHash $wp_hasher PHPass object.
	 *
	 * @param string $password Plain text user password to hash.
	 * @return string The hash string of the password.
	 */