Crates.io | pwquality-sys |
lib.rs | pwquality-sys |
version | 0.2.0 |
source | src |
created_at | 2017-11-26 16:14:51.096558 |
updated_at | 2017-11-26 16:14:51.096558 |
description | Binding for pwquality. |
homepage | https://github.com/satabin/pwquality-rs |
repository | https://github.com/satabin/pwquality-rs |
max_upload_size | |
id | 40577 |
size | 6,067 |
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);