Skip to content

Instantly share code, notes, and snippets.

@lomkju
Last active February 14, 2020 09:14
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 lomkju/9fb937ad7b2ec11913f7b67ff8a80019 to your computer and use it in GitHub Desktop.
Save lomkju/9fb937ad7b2ec11913f7b67ff8a80019 to your computer and use it in GitHub Desktop.
Random String
#Simple commands to generate random strings.
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
openssl rand -base64 15
openssl rand -hex 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment