Skills openssl
Generate secure random strings, passwords, and cryptographic tokens using OpenSSL. Use when creating passwords, API keys, secrets, or any secure random data.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/asleep123/openssl" ~/.claude/skills/openclaw-skills-openssl && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/asleep123/openssl" ~/.openclaw/skills/openclaw-skills-openssl && rm -rf "$T"
manifest:
skills/asleep123/openssl/SKILL.mdsource content
OpenSSL Secure Generation
Generate cryptographically secure random data using
openssl rand.
Password/Secret Generation
# 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
Common Lengths
| Use Case | Command |
|---|---|
| Password (strong) | |
| API key | |
| Session token | |
| Short PIN (8 digits) | `openssl rand -hex 4 |
Notes
outputs ~1.33x the byte count in characters-base64
outputs 2x the byte count in characters-hex- Pipe through
to filter character setstr -dc - Always use at least 16 bytes (128 bits) for secrets