Decrypt data using XChaCha20-Poly1305 with the fastest available backend.
256-bit key (hex or Uint8Array).
Base64-encoded ciphertext from wasmAeadEncrypt.
Optional
Optional AAD (must match encryption).
const result = wasmAeadDecrypt({ key: keyHex, ciphertext: ct });console.log(Buffer.from(result.plaintext).toString("utf8")); Copy
const result = wasmAeadDecrypt({ key: keyHex, ciphertext: ct });console.log(Buffer.from(result.plaintext).toString("utf8"));
Decrypt data using XChaCha20-Poly1305 with the fastest available backend.