Skip to content

Instantly share code, notes, and snippets.

@commonquail
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save commonquail/392ee2252dc357603069 to your computer and use it in GitHub Desktop.
Save commonquail/392ee2252dc357603069 to your computer and use it in GitHub Desktop.

The following command generates a 20 character password from all visible ASCII characters (94) except '"|\ (90), which are problematic in some contexts, like embedding in (unversioned) source code, for approximately 128 bits of entropy (9020 = 1.22e+39):

$ < /dev/urandom tr -dc [:graph:] | tr -d \|\\\'\\\\\" | head -c20 | xsel --clipboard 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment