User Tools

Site Tools


bash:openssl_rand

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

bash:openssl_rand [2026/09/02 09:49] – created thekurubash:openssl_rand [2026/09/02 10:00] (current) – thekuru
Line 2: Line 2:
 ---- ----
  
-__Generate a cryptographically secure, random 64-character hexadecimal string representing 32 bytes of data:__\\ +__Generate a cryptographically secure, random 64-character hexadecimal string representing 32 bytes of data:__ 
-**openssl rand -hex 32**\\+<code bash> 
 +openssl rand -hex 32 
 +</code>
  
-__For Base64 format (shorter string with special characters, 44 characters total):__\\ +__For Base64 format (shorter string with special characters, 44 characters total):__ 
-**openssl rand -base64 32**\\+<code bash> 
 +openssl rand -base64 32 
 +</code>
  
-__For an upper-case version:__\\ +__For an upper-case version:__ 
-**openssl rand -hex 32 | tr 'a-z' 'A-Z'**+<code bash> 
 +openssl rand -hex 32 | tr 'a-z' 'A-Z' 
 +</code>
bash/openssl_rand.txt · Last modified: by thekuru