Greetings,
My friend Matthew Oliver and I have worked on a GPL password generator script that creates decent random passwords for Linux users (
genpass - the random password generator).
If you would like to check it out, you can download the tarball
here, and extract where you like (prob /usr/local/bin).
Or, if you're a Gentoo user we have an ebuild
here.
Simply extract to your portage overlay (default is /usr/local/portage, but I use /usr/portage/local).
Code:
tar -zxvf genpass-0.3-ebuild.tar.gz -C /usr/local/portage
and unmask it
Code:
echo "sys-apps/genpass ~x86 >> /etc/portage/package.keywords"
(substitute ~x86 for your arch, ie ~amd64)
Then emerge it

once you have it, run
and you should get
Code:
chris@josiah ~ $ genpass --help
Usage: genpass [-L <number>] [-n <number>] [-a <number>] [-u <number>] [-l <number] [-s <number>]
Generates a random password
-L, --length Specifies the length of the password.
Default = 8
-n, --number Specifies the number of number characters in the password.
Default = 0 *
-a, --ascii Specifies the number of ascii characters in the password.
Default = 0 *
-u, --upper Specifies the number of uppercase characters in the password.
Default = 0 *
-l, --lower Specifies the number of lowercase characters in the password.
Default = 0 *
-s, --space Specifies the number of space characters in the password.
Default = -1 *
*: (-1 = none, 0 = any, >0 = at least the specified number)
enjoy!
There are probably other easier ways to do this, but it was fun and we hope else someone finds it useful
Let us know your thoughts.
Cheers,
Chris & Matt