Skip to content

Antidote1911/libpassgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crates.io Crates.io License License made-with-rust Build Status

libpassgen

Crate to generate pseudo-random passwords.
This is the Passgen core. A cli app to generate passwords.

USAGE

Generate a 15 chars password with the given "pool" :

use libpassgen::*;

fn main() {
let mut pool = Pool::new();
pool.extend_from_string("123456789");
let password = generate_password(&pool, 15);
println!("{}",password);
}

Generate 100 passwords with 15 chars with the given "pool" :

use std::str::FromStr;
use libpassgen::*;

fn main() {
let mut pool = Pool::from_str("1234567").unwrap();
let vec_passwords = generate_n_passwords(&pool, 15, 100);
for n in 0..vec_passwords.len() {
    println!("{}",vec_passwords[n]);
	}
}

Have a look to Passgen cli app for full example.

About

Crate to generate pseudo-random passwords.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published