Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satabin/pwquality-rs
pwquality bindings for rust
https://github.com/satabin/pwquality-rs
Last synced: 11 days ago
JSON representation
pwquality bindings for rust
- Host: GitHub
- URL: https://github.com/satabin/pwquality-rs
- Owner: satabin
- License: mit
- Created: 2017-11-24T10:02:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-26T16:43:48.000Z (about 7 years ago)
- Last Synced: 2024-12-19T21:23:41.561Z (12 days ago)
- Language: Rust
- Size: 1.8 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# pwquality
[pwquality](https://github.com/libpwquality/libpwquality/) binding for [rust](https://www.rust-lang.org/).
## Usage
Add the dependency to your `Cargo.toml` file.
```toml
[dependencies]
pwquality = "0.2"
```Then import it in your code.
```rust
extern crate pwquality;
```For example:
```rust
use pwquality::PWQuality;let pwq = PWQuality::new();
pwq.set_min_length(32);
let generated = pwq.generate_password(256);
```