pw-gen - Password Generator

Password Generator Rust Library

Required password length is passed into new, while the special, numerical, lower and upper case calls have an optional required setting, assuring the generated password contains at least 1 character from each set.

Example

fn main() { let password = Generator::new(10)
.withspecial(Some(true))
.with
numbers(Some(true))
.withlowercase(Some(true))
.with
uppercase(Some(true))
.withoutsimilar()
.without
ambiguous() .without_sequential() .generate(); println!("{}",password); }

Known Issue

0.1.0 has no checks on length so requiring all 4 and setting too short a password will cause the method to loop indefinitely.

0.1.1 no sequential support is missing.