Crypto SDK
    Preparing search index...

    Interface SecretboxSealResult

    Result of POST /v2/secretbox/seal (XChaCha20-Poly1305).

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

    Base64-encoded sealed ciphertext (nonce + ciphertext + tag).

    algorithm: string

    AEAD algorithm used ("xchacha20-poly1305").