| Crates.io | pwquality |
| lib.rs | pwquality |
| version | 0.2.0 |
| created_at | 2017-11-24 10:05:06.655109+00 |
| updated_at | 2017-11-26 16:15:28.4462+00 |
| description | Binding for pwquality. |
| homepage | https://github.com/satabin/pwquality-rs |
| repository | https://github.com/satabin/pwquality-rs |
| max_upload_size | |
| id | 40372 |
| size | 19,878 |
Add the dependency to your Cargo.toml file.
[dependencies]
pwquality = "0.2"
Then import it in your code.
extern crate pwquality;
For example:
use pwquality::PWQuality;
let pwq = PWQuality::new();
pwq.set_min_length(32);
let generated = pwq.generate_password(256);