Function pwchecker_rs::check_for_pwnage [−][src]
pub fn check_for_pwnage(pass: &str) -> Result<Passwd, Box<dyn Error>>
Checks given password for a breach according to haveibeenpwned.com.
Examples
let res = pwchecker_rs::check_for_pwnage("helloworld"); assert!(res.unwrap().times_pwned > 0);