Skip to content

Instantly share code, notes, and snippets.

@wjimenez5271
Created October 6, 2014 17:28
Show Gist options
  • Select an option

  • Save wjimenez5271/1edf543edea4431c3cbf to your computer and use it in GitHub Desktop.

Select an option

Save wjimenez5271/1edf543edea4431c3cbf to your computer and use it in GitHub Desktop.
Random Password Generator for Bash (OSX)
# Borrowed from http://www.commandlinefu.com/commands/view/4183/generate-random-password
function randpass() {
cat /dev/urandom | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 16; echo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment