A command line tool for generating random passwords. It's just a small tool in daily work. 😄
- Support command line parameters.
- Support generating multiple passwords.
- Support Arabic numerals
0-9
. - Support special characters
!@#$%^&*+?
.
The command includes four optional parameters. You can type mkpasswd -h
for help.
For example:
$ mkpasswd -N 5 -l 16 -n 4 -c 4
-N
: The quantity of created passwords.-l
: The length of password.-n
: The number of Arabic numerals in password.-c
: The number of special characters in password.
Build separately in your operating system. To start building mkpasswd, install Go 1.20 or above.
# Windows
$ go build -o bin/mkpasswd.exe -ldflags "-s -w" .
# Linux or MacOS or FreeBSD
$ go build -o bin/mkpasswd -ldflags "-s -w" .
Build for all mainstream platforms. Please see the Makefile
for details.
$ make all