Skip to content

Instantly share code, notes, and snippets.

@phmullins
Last active September 1, 2016 23:23
Show Gist options
  • Save phmullins/08510261cf6e33228b0dd9beab458360 to your computer and use it in GitHub Desktop.
Save phmullins/08510261cf6e33228b0dd9beab458360 to your computer and use it in GitHub Desktop.
Generate a unique 10 character password using OpenSSL

Use OpenSSL’s random function to generate a 20 character base64 password

$ openssl rand -base64 20

Even better, add the folowwing function to your .bash_profile and then type in randpass to generate a new unique 20 character password.

function randpass(){
  openssl rand -base64 20
}

Generate an MD5 checksum using the current date and time in hours, minutes, and seconds.

$ date | md5sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment