Crypto SDK
    Preparing search index...

    Interface AeadResult

    Result of an AEAD encryption operation.

    const { data } = await client.encrypt({ key: hexKey, plaintext: 'secret' });
    const result: AeadResult = data;
    console.log(result.ciphertext, result.algorithm);
    interface AeadResult {
        ciphertext: string;
        algorithm: string;
    }
    Index
    ciphertext: string

    Hex-encoded ciphertext (includes nonce and tag).

    algorithm: string

    AEAD algorithm used.