## checkpwn-lib  [](https://codecov.io/gh/brycx/checkpwn-lib) [](https://docs.rs/checkpwn-lib/) [](https://crates.io/crates/checkpwn-lib) [](https://github.com/rust-secure-code/safety-dance/)
Library to interact with the [Have I Been Pwned](https://haveibeenpwned.com/) API.
See also the [checkpwn](https://github.com/brycx/checkpwn) CLI utility.
### Usage
```rust
use checkpwn_lib::{Password, check_password, check_account, CheckpwnError};
let password = Password::new("qwerty")?;
check_password(&password);
check_account("your_account", "your_api_key");
```
### Changelog
See [here](https://github.com/brycx/checkpwn-lib/releases).
### License
checkpwn is licensed under the MIT license. See the `LICENSE` file for more information.