Expand description
Rust wrapper around the BCrypt hashing algorithm implementation written in C.
The C implementation is embedded into this crate and compiled using build script.
§Example
use bcrypt_bsd::{gen_salt, hash, to_str};
let salt = gen_salt(12).unwrap();
let bcrypt_hash = hash("Password", &salt).unwrap();
println!("bcrypt salt: {}", to_str(&salt).unwrap());
println!("bcrypt hash: {}", to_str(&bcrypt_hash).unwrap());
Structs§
- Crypt
Error - BCrypt hashing error.