Result of a MAC computation.
const { data } = await client.mac({ algorithm: 'hmac-sha256', key: hexKey, data: 'hello' });const result: MacResult = data;console.log(result.mac, result.algorithm); Copy
const { data } = await client.mac({ algorithm: 'hmac-sha256', key: hexKey, data: 'hello' });const result: MacResult = data;console.log(result.mac, result.algorithm);
Hex-encoded MAC tag.
MAC algorithm used (e.g. "hmac-sha256").
"hmac-sha256"
Result of a MAC computation.
Example