Skip to content

Instantly share code, notes, and snippets.

@wipermail
Last active September 14, 2023 09:21
Show Gist options
  • Save wipermail/038f7c8f6581deea0e209912dad19bc4 to your computer and use it in GitHub Desktop.
Save wipermail/038f7c8f6581deea0e209912dad19bc4 to your computer and use it in GitHub Desktop.
Generate random secret string *nix
openssl rand -base64 64
gpg --gen-random 1 10 | base64
gpg --gen-random 2 20 | base64
gpg --gen-random 1 40 | base64
gpg --gen-random 2 70 | base64
head -c 35 /dev/random | base64
head -c 60 /dev/random | base64
date | sha256sum | base64 | head -c 45; echo
date | sha256sum | base64 | head -c 50; echo
date | sha256sum | base64 | head -c 60; echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment