Skip to content

Instantly share code, notes, and snippets.

@xtman
Created March 4, 2012 23:11
Show Gist options
  • Save xtman/1975293 to your computer and use it in GitHub Desktop.
Save xtman/1975293 to your computer and use it in GitHub Desktop.
Shell Script to generate a random string as password
# Works on Linux and Mac OS
cat /dev/urandom | strings | grep -m 1 -oEi '[a-zA-Z0-9_^!#]{8}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment