Skip to content

Instantly share code, notes, and snippets.

@aspen-roller
Created January 25, 2021 21:08
Show Gist options
  • Save aspen-roller/8872c65d63bba2b27b444f39e8416b5a to your computer and use it in GitHub Desktop.
Save aspen-roller/8872c65d63bba2b27b444f39e8416b5a to your computer and use it in GitHub Desktop.
generate an oidc secret #util
# 16 bytes
hexdump -n 16 -e '4/4 "%08X" 1 "\n"' /dev/random
# 32 bytes
hexdump -n 32 -e '8/4 "%08X" 1 "\n"' /dev/random
# ref: https://stackoverflow.com/questions/34328759/how-to-get-a-random-string-of-32-hexadecimal-digits-through-command-line/34329057
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment