I found a program on Freshmeat, turns out its a whole server/client
solution, and has a few options for the type of password.
http://www.adel.nursat.kz/apg/
I hope this will do it for you. There's also a Standalone version of
APG (automated password generator) and it prints the password to
standard output, which of course can be sent to any file using the ">>
file" shell option. For example, "apg -options... >> passwordfile"