Skip to main content

crypto/argon2/
mod.rs

1//! Argon2id (RFC 9106) password hashing function.
2//!
3//! Argon2id is a memory-hard password hashing function that provides resistance
4//! against both side-channel attacks and GPU/ASIC brute-force attacks.
5//!
6//! The memory-filling phase automatically selects the fastest compression
7//! kernel available on the running CPU: NEON (optionally with the SHA-3 `xar`
8//! extension) on AArch64, AVX2 on x86-64, and a portable scalar implementation
9//! everywhere else. When the `std` feature is enabled, the lanes are also
10//! filled in parallel using `p` threads.
11
12mod argon2;
13
14pub use argon2::{Argon2Error, Params, decode_phc, derive_key, encode_phc, hash_password, verify_password};