Performs an HMAC-SHA-512 hash function
Agent
| Name | Type | Description |
|---|---|---|
| dataToHash | String or blob |
The data to which the hash function will be applied
|
| key | String or blob |
The hash key
|
Blob — the hashed data (64 bytes)
This method performs an HMAC-SHA512 hash using the input data and key. Because the returned data is a blob, it is not uncommon to Base64 encode it.
A simple example of HMAC-SHA-512 hashing.