Random password generator
What
This is a crate about generate random passwords.
Why
To learn Rust.
Requirement
Rust 1.39 or higher.
Try it
$ git clone https://github.com/TENX-S/rand_pwd
$ cd rand_pwd
# Default case: amount of letters: 10, symbols: 2, numbers: 3
$ cargo run --release --example rpg_test
# Specify the parameter: amount of letters: 16, symbols: 2, numbers: 3
$ cargo run --release --example rpg_test 16 2 3
# Try a larger number!
$ cargo run --release --example rpg_test 200000 200 300
ATTENTION!
Do not try a very large number, even it's programly allowed, like i128::MAX
,
unless you got extremely large RAM and great CPU,
or you may got a blue screen or any unpredictable behaviours that will harm your computer hardware or unsaved files since you don't set a right UNIT
number.
UNDER ANY CIRCUMSTANCES YOU USE THIS CRATE AND THE RESULT IT CAUSED, NO ONE WILL BE RESPONIBLE FOR YOU BEHAVIOURS.
Usage
In Cargo.toml
:
= "1"
You may want to use the latest feature(not stable and may requires nightly Rust):
= { = "https://github.com/TENX-S/rand_pwd", = "master" }
Here's the simply demo of partital API:
use ;
Contribution
Any PR is welcome!
LICENSE
MIT