Crates.io | pwchecker-rs |
lib.rs | pwchecker-rs |
version | 0.1.5 |
source | src |
created_at | 2021-03-23 18:26:32.153456 |
updated_at | 2021-04-26 05:52:10.454772 |
description | A library that consumes the pwned passwords API from haveibeenpwned.com |
homepage | |
repository | https://github.com/masonj188/pwchecker-rs/ |
max_upload_size | |
id | 372671 |
size | 6,854 |
pwchecker-rs exports a single function check_for_pwnage
that takes a string a returns results from haveibeenpwned.com.
The returned value is a Result<Passwd, Error>
, the Passwd
struct has the public fields text
which contains the password, and times_pwned
which contains the number of times the password has been pwned.