Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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);
```