Skip to main content

Module argon2

Module argon2 

Source
Expand description

Pure Rust implementation of Argon2id (RFC 9106).

Argon2id is a memory-hard password hashing function that provides resistance against both side-channel attacks and GPU/ASIC brute-force attacks.

Structs§

Params
Parameters for Argon2id.

Enums§

Argon2Error
Argon2 error type.

Functions§

decode_phc
Decode an Argon2id PHC string format into (params, salt, tag).
derive_key
Derive a key using Argon2id.
encode_phc
Encode an Argon2id hash in the PHC string format: $argon2id$v=19$m=<m_cost>,t=<t_cost>,p=<p_cost>$<salt_b64>$<hash_b64>
hash_password
Hash a password and return the PHC-encoded string.
verify_password
Verify a password against a PHC-encoded hash string.