Skip to content

Instantly share code, notes, and snippets.

@jesstess
Created November 27, 2010 20:24
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 jesstess/718240 to your computer and use it in GitHub Desktop.
Save jesstess/718240 to your computer and use it in GitHub Desktop.
N-character password generation out of /dev/urandom
# alphanumeric
</dev/urandom tr -dc [:alnum:] | head -c10
# all printable characters, excluding whitespace
</dev/urandom tr -dc [:graph:] | head -c10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment