argon2-rs
A very simple crate for hashing passwords with the Argon2 algorithm.
This crate is using the original C implementation of Argon2.
Example
use Argon2;
let m_cost = 512_000; // 512Mb of memory
let t_cost = 8; // 8 iterations
let p_cost = 1; // 1 parallelization
let argon2 = new;
let salt = vec!;
// By default the Argon2Id (hybrid) is used with a 64 byte (512 bit) hash length
let hash = argon2.hash_password.unwrap;
assert_eq!;
Features
zeroize- Zeroizes the salt after hashing.bincode- Enables thebincodecrate to encode and decode the Argon2 struct.