Function “sha256HMACOf”
function sha256HMACOf(data, key)
Computes the SHA-256 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 256-bit HMAC value encoded as a hex string.