Skip to content

Instantly share code, notes, and snippets.

@phmullins
Last active Sep 1, 2016
Embed
What would you like to do?
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