Skip to content

Instantly share code, notes, and snippets.

@edernucci
Created July 31, 2019 14:01
Show Gist options
  • Save edernucci/81314e46922e5a1cd89a62347e5220b8 to your computer and use it in GitHub Desktop.
Save edernucci/81314e46922e5a1cd89a62347e5220b8 to your computer and use it in GitHub Desktop.
#!/bin/bash
# change 32 to the required password length
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment