View Single Post
Old 11th February 2014
Alphalutra1 Alphalutra1 is offline
Port Guard
 
Join Date: Sep 2008
Posts: 29
Default

I use something similar to Carpetsmoker's first "good" option; OpenBSD's head, however, doesn't have the "-c" option; here's my hackish password generator (characters allowed are alphanumerics, underscore, and dash):

Code:
< /dev/urandom strings -n1 | tr -dc _A-Z-a-z-0-9 | dd count=1 bs=16 2>/dev/null;echo
I know it works on Linux and OpenBSD; just change the bs in the dd command to change the password length;

Comments appreciated since I am far from adept at the command line.
Reply With Quote