pub fn bcrypt_hash(
pass: &str,
rng: &mut RandomNumberGenerator,
workfactor: usize,
) -> Result<String>Expand description
Produce a bcrypt password hash
ยงExamples
let mut rng = botan::RandomNumberGenerator::new().unwrap();
let bcrypt1 = botan::bcrypt_hash("password", &mut rng, 10).unwrap();
let bcrypt2 = botan::bcrypt_hash("password", &mut rng, 10).unwrap();
assert_ne!(bcrypt1, bcrypt2); // different salt each time