Zend\Crypt\Hmac::compute
Performs a HMAC computation given relevant details such as Key, Hashing algorithm, the data to compute MAC of, and an output format of String, or Binary.
Signature
public function compute(string
$key,
[string
$hash = self::OUTPUT_STRING,
[string
$data = self::OUTPUT_STRING,
[bool
$output = self::OUTPUT_STRING]]] )
Parameters
$key
— string$hash
— string$data
— string$output
— object
Returns
- string