Home > PHP > Function > Hash > hash_hmac()

hash_hmac()

hash_hmac - Generate a keyed hash value using the HMAC method

Syntax

string hash_hmac ()

Arguments

-

Description

Version

PHP 5.1.2, PECL hash >= 1.1

Return value

Returns a string containing the calculated message digest as lowercase hexits unless raw_output is set to true in which case the raw binary representation of the message digest is returned.