pub fn check_entropy(password: &str) -> PassablewordResultExpand description
Check a password to make sure random enough that it would take a lot of effort to crack/guess. This uses the awesome zxcvbn library behind the scenes.
ยงExample (using rocket.rs)
match check_entropy(password) {
Ok() => status::Ok
Err(err) => match(err) {
PassablewordResult::TooSimple => status::BadRequest("Your should be more random")
}
}