Install the command line tool with
cargo install mkpasswd.
You can then use the
mkpasswd command, run it with
--help to get more information.
The library exposes only a few functions dedicated to random password generation.
- If you want it simple and can risk panics, use the
- The most control is offered by
generate_with_rng, because it uses an external random number generator. You should this if you want to generate multiple passwords.
Commonly used alphabets for password generation.
Generates an UTF-8 valid password with a length of 32 characters.