Skip to content

Instantly share code, notes, and snippets.

@aaronbronow
Created December 8, 2017 03:05
Show Gist options
  • Save aaronbronow/a6d68eeea4b80c098f3613ffbc93026c to your computer and use it in GitHub Desktop.
Save aaronbronow/a6d68eeea4b80c098f3613ffbc93026c to your computer and use it in GitHub Desktop.
get a short password-type string
### Thanks, ingy.net for this one that has no special package requirements
cat /dev/urandom | LC_CTYPE=C tr -cd a-zA-Z0-9+/ | fold -w12 | head -1
# or
openssl rand -base64 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment