Password Generator

Monty J. Harder lists at kc.rr.com
Thu Jun 20 04:07:07 CDT 2002


On Tuesday 18 June 2002 09:58 am, Jonathan Hutchins wrote:
> Can anybody recommend a program to generate passwords for user accounts?

How about this:
mkpwd
=====
dd if=/dev/random bs=${1-12} count=1 2>/dev/null | 
        uuencode -m - | head -n2 | tail -n1

examples:

monster: ~> ./mkpwd
SnKWbv71bjEnmXlP

monster: ~> ./mkpwd
xsK6SnGKL/r13C/q

monster: ~> ./mkpwd 8
hfJecNmXp94=

monster: ~> ./mkpwd 5
tv8Ur3U=

If the number you choose as the parameter is not divisible by 3, the last 
character generated will be less than random, but the entire string is pretty 
darned random, and IMO makes for a more secure alternative than letting 
"Mary" make her password be "mary" like some of my customers do.




More information about the Kclug mailing list