Crates.io | mini-rcrypt |
lib.rs | mini-rcrypt |
version | 0.1.1 |
source | src |
created_at | 2023-05-07 18:48:15.706853 |
updated_at | 2023-05-07 18:56:31.27019 |
description | A minimal Rust implementation of OpenBSD Blowfish password hashing code. |
homepage | https://github.com/Guilherme775/rcrypt |
repository | https://github.com/Guilherme775/rcrypt |
max_upload_size | |
id | 859331 |
size | 35,021 |
mini-rcrypt
: A minimal Rust implementation of OpenBSD Blowfish password hashing code.use mini_rcrypt::BCrypt;
let salt = BCrypt::gensalt(5).unwrap();
let hash = BCrypt::hashpw("test".to_owned(), salt).unwrap();
let check = BCrypt::checkpw("test".to_owned(), hash);
assert!(check);