Skip to main content

Module password

Module password 

Source
Expand description

Password hashing with argon2id.

Uses argon2 defaults (RFC 9106 recommendations): argon2id, m_cost=19456 KiB, t_cost=2, p=1. Salts come from the OS RNG.

Functionsยง

hash
Hash a password with argon2id + OS-provided salt. Returns the PHC-encoded string, ready to store in rustio_users.password_hash.
verify
Verify a password against a stored PHC hash.