simple_password_generator

Crates.iosimple_password_generator
lib.rssimple_password_generator
version1.0.1
sourcesrc
created_at2022-12-14 03:23:28.178625
updated_at2022-12-14 03:29:36.841773
descriptionSimple CLI password generator. Can also be used as lib in other porjects
homepage
repositoryhttps://github.com/CCecilia/simple_password_generator
max_upload_size
id736271
size29,193
christian cecilia (CCecilia)

documentation

README

simple_password_generator

CLI

Running from the binary file

$ ./simple_password_generator --length 16
$ Password: D2sb9NV7@XjQQ&#

Available Flags

Short Long Description Default
--length Length of password 8
-u --ucase-only Only use uppercase aplha characters false
-l --lcase-only Only use lowercase aplha characters false
-n --no-numbers Don't include any number false
-s --no-special Dont include any special characters false
-h Help
-v version

Lib

use simple_password_generator::PasswordGenerator;

fn main() {
    let password = PasswordGenerator::new().length(password_length).generate();

    println!("Password: {}", password);
}
Commit count: 25

cargo fmt