Advertisements

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

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: