Library to interact with the Have I Been Pwned API.
See also the checkpwn CLI utility.
use checkpwn_lib::{Password, check_password, check_account, CheckpwnError};
let password = Password::new("qwerty")?;
check_password(&password);
check_account("your_account", "your_api_key");
See here.
checkpwn-lib is licensed under the MIT license. See the LICENSE
file for more information.