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