argon_hash_password

Crates.ioargon_hash_password
lib.rsargon_hash_password
version0.1.2
sourcesrc
created_at2022-12-22 17:46:12.279905
updated_at2023-01-21 13:56:25.431445
descriptionHelper functions for common argon2 password hashing requirements
homepagehttps://github.com/tirax-lab/argon_hash_password
repositoryhttps://github.com/tirax-lab/argon_hash_password
max_upload_size
id744041
size7,540
Mark Ruddy (mark-ruddy)

documentation

README

Argon Hash Password

Helper functions for common argon2 password hashing requirements

Create a hashed password with salt

let (hash, salt) = argon_hash_password::create_hash_and_salt("PlaintextPassword");

The hash and salt can then be stored

Check a Hash

let check = argon_hash_password::check_password_matches("PlaintextPassword", hash, salt);

match check {
  true => println!("Correct plaintext password provided"),
  false => println!("Incorrect plaintext password provided"),
}
Commit count: 7

cargo fmt