bash:openssl_rand
Differences
This shows you the differences between two versions of the page.
| bash:openssl_rand [2026/09/02 09:49] – created thekuru | bash: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 | ||
| + | </ | ||
| - | __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 | ||
| + | </ | ||
| - | __For an upper-case version:__\\ | + | __For an upper-case version: |
| - | **openssl rand -hex 32 | tr ' | + | <code bash> |
| + | openssl rand -hex 32 | tr ' | ||
| + | </ | ||
bash/openssl_rand.txt · Last modified: by thekuru
