This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new!

Strong password generation

Posted by: Anonymous [ip:] on September 26, 2007 01:55 PM
<code>PASSWORD_LENGTH="10" && tr -cd [:graph:] < /dev/urandom | head -c $PASSWORD_LENGTH</code>

Note: I have only confirmed this works on GNU/Linux. OpenBSD's head utility does not support the -c option. developers, please use <a href="">nl2br</a>!


Return to Automated user management with Expect