Created
December 8, 2017 03:05
-
-
Save aaronbronow/a6d68eeea4b80c098f3613ffbc93026c to your computer and use it in GitHub Desktop.
get a short password-type string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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