User Tools

Site Tools


bash:openssl_rand

This is an old revision of the document!


API Keys & Secrets


Generate a cryptographically secure, random 64-character hexadecimal string representing 32 bytes of data:
openssl rand -hex 32

For Base64 format (shorter string with special characters, 44 characters total):
openssl rand -base64 32

For an upper-case version:
openssl rand -hex 32 | tr 'a-z' 'A-Z'

bash/openssl_rand.1788331741.txt.gz · Last modified: by thekuru