Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
function computeHmac( algorithm, _key, _data): string
data
key
algo
algorithm
"sha256"
"sha512"
_key
BytesLike
_data
string
key = id('some-secret'); // Compute the HMAC computeHmac('sha256', key, '0x1337'); // To compute the HMAC of UTF-8 data, the data must be // converted to UTF-8 bytes computeHmac('sha256', key, toUtf8Bytes('Hello World'));
Was this page helpful?