pw-gen

Crates.iopw-gen
lib.rspw-gen
version0.1.2
sourcesrc
created_at2023-05-30 13:34:18.522349
updated_at2023-05-30 14:39:33.104027
descriptionA password generator
homepage
repositoryhttps://github.com/gordug/pw-gen.git
max_upload_size
id877905
size14,145
Chris Johnson (gordug)

documentation

README

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)
.with_special(Some(true))
.with_numbers(Some(true))
.with_lowercase(Some(true))
.with_uppercase(Some(true))
.without_similar()
.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.

Commit count: 17

cargo fmt