Skip to main content

Module hash

Module hash 

Source

Structs§

HashOpts
The options for hashing a password
PasswordHash

Enums§

HashError
VerifyError

Functions§

generate_nonce
hash_password
Hashes a password using PBKDF2 with SHA256 and a random salt.
hash_password_with_opts
Hashes a password using PBKDF2 with SHA256 and the given options.
mock_sasl_challenge
sasl_verify
scram256_hash
Hashes a password using PBKDF2 with SHA256, and returns it in the SCRAM-SHA-256 format. The format is SCRAM-SHA-256$:$<stored_key>:<server_key>
scram256_parse_opts
Parses a SCRAM-SHA-256 hash and returns the options used to create it.
scram256_verify
Verifies a password against a SCRAM-SHA-256 hash.