mkpwd is a password generating program. It is designed to satisfy a scalable range of security demands.
It's standard behavior is to generate one password consisting of any of all printable ASCII characters (32-128) with a length between 6 and 10.
You can modify the way passwords are generated via command-line switches. You can specify a length range, the characters used and even let mkpwd generate passwords which are kind of readable and therefore easier to remember (and easier to crack either, see below). mkpwd was tested under Solaris, FreeBSD and Linux.↑ Top of page ↑
Download the source and untar the
Change to the created directory and type:
# make and
# make install
That's all.↑ Top of page ↑
The sources are kept in a repository on sourceforge. Just checkout the sources:
git clone git://git.code.sf.net/p/mkpwd/code mkpwd
and send me diffs ;)↑ Top of page ↑
The algorithm is based on the systems rand()-function (see man 3 rand) and therefore depends heavily on it's implementation. I did some testing on the output of mkpwd which is represented in the table below. I let mkpwd generate 100000 passwords with the parameters listed below. The `*' run was performed using a script-file which started mkpwd 10 times at once (i.e. nearly, started in background) and evaluated the output of all 10 instances. The numbers in the table are the numbers printed by 'uniq -d'.Table: