Created
January 8, 2015 10:48
-
-
Save jacoelho/699ccfeb1f4349f2c6e3 to your computer and use it in GitHub Desktop.
random-password generator
This file contains hidden or 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
function random-password { | |
cat /dev/urandom | env LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w ${1- 32} | head -n 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment