Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates cryptographically secure random strings, passwords, and API tokens using the OpenSSL rand command.
Use this skill ↓74% 83%+9 ptsof test cases passed
Passed 19 of 23 test cases with the skill, and 17 of 23 without it.
How many hex characters are produced when generating an API key with the recommended 32 bytes?
The output length is 64 hex characters.
3 of 3 safety checks passed
Generate cryptographically secure random data using openssl rand.
# 32 random bytes as base64 (43 chars, URL-safe with tr)
openssl rand -base64 32 | tr '+/' '-_' | tr -d '='
# 24 random bytes as hex (48 chars)
openssl rand -hex 24
# alphanumeric password (32 chars)
openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | head -c 32
| Use Case | Command |
|---|---|
| Password (strong) | openssl rand -base64 24 |
| API key | openssl rand -hex 32 |
| Session token | openssl rand -base64 48 |
| Short PIN (8 digits) | `openssl rand -hex 4 |
-base64 outputs ~1.33x the byte count in characters-hex outputs 2x the byte count in characterstr -dc to filter character setsNext to this one in the catalogue, plus more from the same author.