Crypto Edge
    Preparing search index...

    Function sign

    • Compute an HMAC signature using the Web Crypto API.

      Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>

      The HMAC signature bytes.

      const sig = await sign(
      new Uint8Array(32), // key
      new TextEncoder().encode("hello"),
      );