Crypto Lib
    Preparing search index...

    Interface ModernChaCha20DecryptOptions

    Options for modern ChaCha20-Poly1305 decryption.

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

    256-bit key (32 bytes), hex string 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).