Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Blogs > ErV
User Name


Rate this Entry

How to generate password

Posted 02-21-2009 at 09:56 AM by ErV

Generating password is simple:
cat /dev/urandom| tr -dc '0-9a-zA-Z!@#$%^&*_+-'|head -c 8;echo
This script generates 8 characters long password.
To change number of characters, replace 8 with other number.
'0-9a-zA-Z!@#$%^&*_+-' defines character set used in password. If you need another charset, change this string to suit your needs.
Posted in Uncategorized
Views 3404 Comments 0
« Prev     Main     Next »


All times are GMT -5. The time now is 11:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration