This tiny script to create password candidates is for Debian System that doesn't have mkpasswd command natively.
Perhaps using this script can be used more easily than building mkpasswd command from source codes.
mkpasswd [-s|--simbol] [length] [number of password candidates]
-
When using option
-sor--simbol, password candidates includes some simbol characters. If you wish to edit excluding simbols, set environment variableMKPWD_EXCHR.MKPWD_EXCHRdefault value is!&*()[]{}<>?|/\; -
When not giving
number of password candidates, default is1. -
When not giving
length, default is42. -
I recomend you to install
pwgenpackage usingsudo apt-get install pwgen. It presents better passwords. -
When not installed
pwgen,mkpasswduses/dev/uramdominstead and prints an alert message,Please install "pwgen" to make it more convenient.
-
$ mkpasswd
ofiecooCh7reikofaixiK9xaej9cogai9ahchiepha -
$ mkpasswd 24
UochohriPohzie4yoh9Ep3wa -
$ mkpasswd 24 4
jaiXiy7hiuHoh4uqui9yie7g
Evij3iesh9ahnah9zooHai9e
aihoVaepieniting7eoboe9r
Aixo7roh7ANahz7okeaphire -
$ mkpasswd 24 -s,$ mkpasswd -s 24,$ mkpasswd --simbol 24or$ mkpasswd 24 --simbol
vq^TkzY@1,GpFhZw6$iMG:uJ
MIT License.