| Crates.io | secret-gen |
| lib.rs | secret-gen |
| version | 0.1.0 |
| created_at | 2022-12-08 03:28:32.188744+00 |
| updated_at | 2022-12-08 03:28:32.188744+00 |
| description | Command-line password/passphrase generator. |
| homepage | https://github.com/clementi/secret |
| repository | https://github.com/clementi/secret |
| max_upload_size | |
| id | 732320 |
| size | 140,335 |
Command-line password/passphrase generator.
You can install secret either by using Cargo, or by downloading a binary from the Releases page.
Run this in your shell:
cargo install secret-gen
See the Releases page.
Usage: secret [OPTIONS] <COMMAND>
Commands:
token Generate a token (string) of random characters
phrase Generate a passphrase of random words
help Print this message or the help of the given subcommand(s)
Options:
-n, --number <COUNT> Number of tokens or phrases to generate [default: 1]
-h, --help Print help information
-V, --version Print version information
The token command has this usage:
Usage: secret token [OPTIONS]
Options:
-l, --length <LENGTH> Length of token [default: 20]
--alpha-lower Use lowercase letters
--alpha-upper Use uppercase letters
--alpha Use lowercase and uppercase letters (equivalent to --alpha-lower --alpha-upper)
--numeric Use numeric characters
--alphanumeric Use alphanumeric characters (equivalent to --alpha --numeric)
--symbols Use symbols
-a, --all Use everything (equivalent to --alphanumeric --symbols) [default if no other character set is provided]
-h, --help Print help information
-V, --version Print version information
The phrase command has this usage:
Usage: secret phrase [OPTIONS]
Options:
-l, --length <LENGTH> Length of phrase (in words) [default: 4]
-s, --separator <SEPARATOR> Word separator [default: " "]
-h, --help Print help information
-V, --version Print version information