Crypto SDK
    Preparing search index...

    Interface PasswordHashResult

    Result of a password hashing operation (Argon2).

    const { data } = await client.passwordHash({ password: 'hunter2' });
    const result: PasswordHashResult = data;
    console.log(result.phc); // PHC-format string
    console.log(result.hash, result.salt, result.params);
    interface PasswordHashResult {
        hash: string;
        salt: string;
        params: Argon2Params;
        algorithm: string;
        phc: string;
    }
    Index
    hash: string

    Hex-encoded password hash.

    salt: string

    Hex-encoded salt used for hashing.

    params: Argon2Params

    Argon2 cost parameters (time, memory, parallelism).

    algorithm: string

    Argon2 variant used (e.g. "argon2id").

    phc: string

    PHC-format encoded hash string.