Crypto SDK
    Preparing search index...

    Interface PasswordEncryptResult

    Result of POST /v2/password/encrypt (Argon2id + XChaCha20-Poly1305).

    const { data } = await client.passwordEncrypt({ password: 'my-pass', plaintext: 'secret' });
    const result: PasswordEncryptResult = data;
    await client.passwordDecrypt({ password: 'my-pass', ciphertext: result.encrypted });
    interface PasswordEncryptResult {
        encrypted: string;
        algorithm: string;
    }
    Index
    encrypted: string

    Base64-encoded payload (parameters, salt, nonce and ciphertext).

    algorithm: string

    Construction used ("argon2id-xchacha20-poly1305").