Skip to content

Instantly share code, notes, and snippets.

@hiAndrewQuinn
Created June 24, 2024 06:38
Show Gist options
  • Save hiAndrewQuinn/f6b43c15233307e37fd6b62e8756196a to your computer and use it in GitHub Desktop.
Save hiAndrewQuinn/f6b43c15233307e37fd6b62e8756196a to your computer and use it in GitHub Desktop.
Generate a random password from the shell alone
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
@hiAndrewQuinn
Copy link
Author

Harvested with love from @rujmah 's collection over at https://gist.github.com/rujmah/5c0e7b1653649d147abb53ed2db4f2d1 . If you need non-alphanumerics, etc., head yonder!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment