| Crates.io | pwgen2 |
| lib.rs | pwgen2 |
| version | 0.7.3 |
| created_at | 2025-02-26 12:15:37.634839+00 |
| updated_at | 2025-04-11 06:08:18.242668+00 |
| description | password generator |
| homepage | https://docs.io/pwgen2 |
| repository | https://github.com/nbari/pwgen2/ |
| max_upload_size | |
| id | 1570379 |
| size | 78,207 |
password generator
Default length is 18 characters, but can be changed with the first argument.
pwgen2 24
Password is generated using the following characters:
lowercase: "abcdefghijklmnopqrstuvwxyz",
uppercase: "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
digits: "0123456789",
symbols: "!@#$%&.-_*",
cargo install pwgen2
Usage: pwgen2 [OPTIONS] [length] [number]
Arguments:
[length] password length [default: 18]
[number] Number of passwords to generate [default: 1]
Options:
-p, --pin Generate a pin
-a, --alphanumeric Generate an alphanumeric password
-b, --bcrypt Hash the generated password using Bcrypt
-k, --pbkdf2 Hash the generated password using PBKDF2
-s, --sha512 Hash the generated password using SHA512
-h, --help Print help
-V, --version Print version
Create a password with 24 characters:
pwgen2 24
Create a pin:
pwgen2 -p
Create an alphanumeric password:
pwgen2 -a
Create 5 passwords with 24 characters:
pwgen2 24 5
Create a password and hash it using Bcrypt:
pwgen2 -b
useful for generating passwords for htpasswd