Crypto
computeHmac
Return the HMAC for data
using the key
key with the underlying algo
used for compression.
Parameters
Parameter | Type | Description |
---|---|---|
algorithm | "sha256" | "sha512" | The algorithm to use for compression. |
_key | BytesLike | The key to use for the HMAC. |
_data | BytesLike | The data to authenticate. |
Returns
string
The HMAC of the data.
Example
Source
Was this page helpful?