1 unstable release
0.1.0 | Oct 23, 2024 |
---|
#439 in Command line utilities
95KB
2K
SLoC
mkpw
Highly customizable password generation tool. π
This tool uses the password generation library password-maker. For more details, please refer to password-maker/README.md.
Installation
From source
cargo install --path .
From crates.io
cargo install mkpw
Example
Generate a password with the default settings
The default settings are as follows:
$ mkpw
8m8s]@IV[d=2\f_(
Specify the length of the password
You can specify the length of the password as follows:
# Generate a password with a length of 20
$ mkpw --length 20
/(DBnw!pv4@"(ku|)/rx
Specify symbols
You can change the symbols included in the password:
# Change the symbols included in the password to @ or ^
$ mkpw --symbol-candidates @^
0@mg71C12TZNQuIj
Specify the minimum count of occurrences
You can specify the minimum count of times a character appears as follows:
# Generate a password with a minimum of 2 lowercases
$ mkpw --lowercase-minimum-count 2
6E?t(f/&$muBK,HJ
Specify other characters in the password
You can specify other characters to include in the password:
# Generate a password with at least 2 of the following characters: πΊπΈπΉπ»
$ mkpw --other-candidates πΊπΈπΉπ» --other-minimum-count 2
(6πΈ3aOx(8s7'T91πΊ
Specify the number of passwords to generate
You can specify the number of passwords to generate:
# Generate 5 passwords
$ mkpw --count 5
_{!sBZYjUO%8uAa!
J5_N@f{M%Akn5)+=
Bx6Wa.f`J|nE{Cx^
zoWby9vgd31h6F,?
Ps<-1lWE*,IaK8Ab
Specify copying the password to the clipboard
You can copy the generated password to the clipboard:
# Copy the generated password to the clipboard
$ mkpw --clipboard
Load completion script
You can load the completion script for the mkpw
command:
# Load the completion script for the mkpw command
$ source <(mkpw --completion bash)
License
Licensed under both the Apache License, Version 2.0 and the MIT License.
You may select, at your option, one of the above-listed licenses.
See the LICENSE-APACHE and LICENSE-MIT files for the full text of the Apache License, Version 2.0 and the MIT License, respectively.
Dependencies
~6β17MB
~301K SLoC