Crates.io | argon_hash_password |
lib.rs | argon_hash_password |
version | 0.1.2 |
source | src |
created_at | 2022-12-22 17:46:12.279905 |
updated_at | 2023-01-21 13:56:25.431445 |
description | Helper functions for common argon2 password hashing requirements |
homepage | https://github.com/tirax-lab/argon_hash_password |
repository | https://github.com/tirax-lab/argon_hash_password |
max_upload_size | |
id | 744041 |
size | 7,540 |
Helper functions for common argon2 password hashing requirements
let (hash, salt) = argon_hash_password::create_hash_and_salt("PlaintextPassword");
The hash and salt can then be stored
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"),
}