Compute an HMAC signature using the Web Crypto API.
Signing parameters (key, data, optional hash algorithm).
The HMAC signature bytes.
const sig = await sign( new Uint8Array(32), // key new TextEncoder().encode("hello"),); Copy
const sig = await sign( new Uint8Array(32), // key new TextEncoder().encode("hello"),);
Compute an HMAC signature using the Web Crypto API.