Dave's Brain

Browse - Computer Tips - How can I generate a random password?

Date: 2000may29
Updated: 2016jun14
OS: Linux
Language: bash

Q.  How can I generate a random password?

A.  This chain of Linux commands does the trick:

head -c8 /dev/random | base64 | sed -e 's/=$//'

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.