Function

hash_hmac

Synopsis

hash_hmac(string, string, string, bool ...): string

Area
Runtime\PS\Crypto\Hash\hash_hmacareas

Description

hash_hmac returns the $algo keyed digest of $data under $key as lowercase hex characters, or as raw bytes when $binary is true; a key longer than the algorithm's block size is itself digested first, which is HMAC's own rule and not a choice made here.

Usage

$value = hash_hmac($arguments);
$fn = hash_hmac(...);

See also