Function “sha1HMACOf”

function sha1HMACOf(data, key)

Computes the SHA-1 HMAC of the given string and key.

Parameters

NameTypeDescription
datastringThe data for which to compute the HMAC
keystringThe string to use for computing the HMAC

Return Value

Returns the 160-bit HMAC value encoded as a hex string.