Function “sha1HMACOf”
function sha1HMACOf(data, key)
Computes the SHA-1 HMAC of the given string and key.
Parameters
| Name | Type | Description |
|---|---|---|
data | string | The data for which to compute the HMAC |
key | string | The string to use for computing the HMAC |
Return Value
Returns the 160-bit HMAC value encoded as a hex string.