Dave's Brain

Browse - computer tips - random password

Date: 2000may29

Q.  How can I generate a random password?

A.  This chain of Linux commands does the trick:

head -c8 /dev/random | uuencode -m - | sed -n '2s/=*$//;2p'

From http://www.linuxplanet.com/linuxplanet/tips/1141/1/

Add a comment

Sign in to add a comment
Copyright © 2008, dave - Code on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License.