wp_hash

Definition:
function wp_hash($data, $scheme = 'auth') {}

Get hash of given string.

Parameters

  • string $data: Plain text to hash
  • $scheme

Return values

returns:Hash of $data

Source code

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

	$salt = wp_salt($scheme);



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

}

3759

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: