Options for edge-compatible AES-GCM encryption.
import type { EdgeEncryptOptions } from "@aspect/crypto-edge";const opts: EdgeEncryptOptions = { key: new Uint8Array(32), plaintext: new TextEncoder().encode("hello"),}; Copy
import type { EdgeEncryptOptions } from "@aspect/crypto-edge";const opts: EdgeEncryptOptions = { key: new Uint8Array(32), plaintext: new TextEncoder().encode("hello"),};
Raw AES key bytes.
Plaintext to encrypt.
Optional
Optional additional authenticated data.
Options for edge-compatible AES-GCM encryption.
Example