Expand description
Password hashing and cryptographic digest utilities.
Password helpers use Argon2id with a fresh random salt for each new hash. The SHA-256 submodule provides byte-oriented digest helpers.
Modules§
Structs§
- Cost
- Argon2id cost parameters for hashing a new password.
Functions§
- password
- Hashes a plaintext password with Argon2id at the given cost.
- verify_
password - Verifies a plaintext password against an encoded Argon2 password hash.
Type Aliases§
- PhcString
- A PHC-formatted Argon2id password hash.