hmacHex
HMAC-SHA256 a message with a hex-encoded secret, returning the signature as lowercase hex.
HMAC-SHA256 a message with a hex-encoded secret, returning the signature as lowercase hex.
Import from @homepages/template-kit/browser.
Signature
Section titled “Signature”function hmacHex(secretHex: string, message: string): Promise<string>Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
secretHex |
string |
required | |
message |
string |
required |
Returns
Section titled “Returns”Promise<string>