Skip to content

Instantly share code, notes, and snippets.

@dzvon
Last active November 16, 2020 02:46
Show Gist options
  • Save dzvon/51738396af44521ca745143772d26f98 to your computer and use it in GitHub Desktop.
Save dzvon/51738396af44521ca745143772d26f98 to your computer and use it in GitHub Desktop.
usual linux command
# Generate a Random Password
generate_random () {
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment