Random password one-liner September 1, 2006
Posted by mgerdts in Uncategorized.2 comments
I recently came up with this method for generating reasonable random 8-character passwords:
$ dd if=/dev/random bs=6 count=1 2>/dev/null | openssl base64 LCia46S4
If 8 characters is not long enough, increase the number after bs= to 75% of the number of characters you would like in the password.