Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate secure random strings, passwords, and cryptographic tokens using OpenSSL. Use when creating passwords, API keys, secrets, or any secure random data.
.claude/skills/sundial-org-openssl/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | -31% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -43% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -54% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 102% | 0% |
| case-16 | ✓→✗ | ▼ Worse | -9% | 0% |
Generate cryptographically secure random data using openssl rand.
bash# 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 | xxd -r -p | od -An -tu4 | tr -d ' ' | head -c 8 |
-base64 outputs ~1.33x the byte count in characters-hex outputs 2x the byte count in characterstr -dc to filter character setsOther measured skills in the registry, with their headline benchmark lift.