Crate pwchecker_rs

Source
Expand description

pwchecker_rs

pwchecker_rs allows you to conveniently query the haveibeenpwned.com api so you can check whether or not a password has been involved in a data breach.

§Examples

let res = pwchecker_rs::check_for_pwnage("helloworld")?;

assert!(res.times_pwned > 0);

Structs§

Passwd
Passwd contains two fields, the password checked for pwnage and the number of times that password has been pwned.

Functions§

check_for_pwnage
check_for_pwnage checks the given password against the haveibeenpwned breach database.