Expand description
Generate random passwords.
option
sets the password type. It can be pin
, alpha
or full
. length
sets the password length.
Examples
use pwgen::generate;
let pw = generate("pin", 8);
assert_eq!(pw.len(), 8);
assert!(pw.chars().all(|ch| ch.is_ascii_digit()));