[−][src]Crate checkpwn_lib
Usage:
use checkpwn_lib::{Password, check_password, check_account, CheckpwnError}; let password = Password::new("qwerty")?; check_password(&password); check_account("your_account", "your_api_key");
Structs
Password |
|
Enums
CheckpwnError | Errors related to checking passwords and accounts. |
Constants
CHECKPWN_USER_AGENT | The checkpwn UserAgent sent to HIBP. |
Functions
check_account | Check account, on both account and paste databases, using a given API key.
Before sending a request, the thread sleeps for 1600 millis. HIBP limits at 1500.
Returns Ok(bool), |
check_password | Check password.
Returns Ok(bool), |