https://github.com/brycx/checkpwn-lib
Library to interact with the HIBP API
https://github.com/brycx/checkpwn-lib
data-breach haveibeenpwned hibp password security
Last synced: 5 months ago
JSON representation
Library to interact with the HIBP API
- Host: GitHub
- URL: https://github.com/brycx/checkpwn-lib
- Owner: brycx
- License: mit
- Created: 2020-10-22T04:59:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T10:10:08.000Z (over 1 year ago)
- Last Synced: 2024-11-11T02:12:12.488Z (6 months ago)
- Topics: data-breach, haveibeenpwned, hibp, password, security
- Language: Rust
- Homepage:
- Size: 74.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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-lib is licensed under the MIT license. See the `LICENSE` file for more information.