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§
- Argon2
Error - 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.