Crypto Lib
    Preparing search index...

    Interface AeadDecryptOptions

    Options for XChaCha20-Poly1305 decryption.

    interface AeadDecryptOptions {
        key: string | Uint8Array<ArrayBufferLike>;
        ciphertext: string;
        aad?: Uint8Array<ArrayBufferLike>;
    }
    Index
    key: string | Uint8Array<ArrayBufferLike>

    256-bit key (32 bytes), hex or Uint8Array.

    ciphertext: string

    Base64-encoded ciphertext (as returned by encrypt).

    aad?: Uint8Array<ArrayBufferLike>

    Optional additional authenticated data (must match what was used during encryption).