256-bit key as hex string or Uint8Array.
OptionalchunkChunk size used during encryption (default: 65536 = 64 KiB).
Optionalformat"stream" (the default) reads the chunked format that
createEncryptStream and streamEncrypt write.
"single-message" reads the format createEncryptStream wrote before
0.0.36 (nonce || ciphertext || tag); it can only be checked once all
of it has arrived, so it is buffered whole.
Options for creating a decrypt transform stream.
Example