random generated password

Randal L. Schwartz merlyn at stonehenge.com
Tue Aug 30 18:40:37 UTC 2011

>>>>> "Michael" == Michael Sierchio <kudzu at tenebras.com> writes:

Michael> dd if=/dev/random count=1 | tr -c "[:alnum:]"
Michael> '0-9A-Za-z0-9A-Za-z0-9A-Za-a-z0-9A-Za-z'

Michael> will give you the right kind of characters to use, for example.

I prefer "openssl rand -base64 6" to get an 8-char password from a
fairly large set of sensible characters.  Each multiple of 3 results in 4
characters in the output.

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion

More information about the freebsd-questions mailing list