Options for HMAC signing.
import type { EdgeHmacSignOptions } from "@aspect/crypto-edge";const opts: EdgeHmacSignOptions = { key: new Uint8Array(32), data: new TextEncoder().encode("message"), hash: "SHA-256",}; Copy
import type { EdgeHmacSignOptions } from "@aspect/crypto-edge";const opts: EdgeHmacSignOptions = { key: new Uint8Array(32), data: new TextEncoder().encode("message"), hash: "SHA-256",};
HMAC key bytes.
Data to sign.
Optional
Hash algorithm (defaults to SHA-256).
Options for HMAC signing.
Example