Skip to content

Instantly share code, notes, and snippets.

@lxmmxl56
Last active November 9, 2019 23:54
Show Gist options
  • Save lxmmxl56/4e1371dbfc26958a18d691641de8702e to your computer and use it in GitHub Desktop.
Save lxmmxl56/4e1371dbfc26958a18d691641de8702e to your computer and use it in GitHub Desktop.
Mac Terminal Random Password Generator - Generates a random 32 character string (upper case, lower case, and numbers) and copies it to the clipboard.
LC_ALL=C tr -dc A-Za-z0-9 < /dev/urandom | fold -w ${1:-32} | head -n 1 | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment