# How To Generate Secret

> Tell the user the command to generate a random 32-byte hex string for a secret, token, API key, or signing key. Use when the user needs to create a strong random secret.

- Skill: `prostdev/how-to-generate-secret` (Agent Skill)
- Install (CLI): `npx skillmds@latest add prostdev/how-to-generate-secret`
- Raw SKILL.md: https://api.skillmd.com/api/skills/prostdev/how-to-generate-secret/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: ProstDev (https://skillmd.com/u/prostdev)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/prostdev/how-to-generate-secret

---


# How to generate a secret

Remind the user of the command to generate a random 32-byte hex string for secrets, tokens, API
keys, signing keys, etc. The command is:

```bash
openssl rand -hex 32
```

Do not run this command yourself; the user should run it in their own terminal so the secret is
generated locally and never passes through the session.

Do not explain the command or its output; just provide the command and the context above.

