Skip to content

Instantly share code, notes, and snippets.

@hazcod
Created February 5, 2019 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hazcod/c7b85ada20717adca4a1100144d26e02 to your computer and use it in GitHub Desktop.
Save hazcod/c7b85ada20717adca4a1100144d26e02 to your computer and use it in GitHub Desktop.
Bash snippet to generate a 32-character password with strong entropy.
#!/usr/bin/env sh
LC_ALL=C tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' < /dev/urandom | head -c 32 ; echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment