A command-line utility for random password generation.
- PHP ≥ 8.0
- Composer
composer global require --optimize-autoloader shiyan/passgen
Make sure that the COMPOSER_HOME/vendor/bin
dir is in your PATH
env var.
More info in the composer help: composer global -h
If you have the CGR installed, then run the following command instead of the one above:
cgr -o shiyan/passgen
passgen [<length>]
Where length
is an optional password length argument [default: 20]
.