Result of POST /v2/secretbox/seal (XChaCha20-Poly1305).
POST /v2/secretbox/seal
const { data } = await client.secretboxSeal({ key: hexKey, plaintext: 'secret' });const result: SecretboxSealResult = data;console.log(result.sealed); Copy
const { data } = await client.secretboxSeal({ key: hexKey, plaintext: 'secret' });const result: SecretboxSealResult = data;console.log(result.sealed);
Base64-encoded sealed ciphertext (nonce + ciphertext + tag).
AEAD algorithm used ("xchacha20-poly1305").
"xchacha20-poly1305"
Result of
POST /v2/secretbox/seal(XChaCha20-Poly1305).Example