Tool
Session / CSRF Secret Generator
CSPRNG session and CSRF secrets with .env copy. Client-side only.
Runs entirely in your browser — no data sent to servers. Privacy policy
Prove it runs locally
- Open DevTools → Network tab
- Click Generate
- Confirm zero outbound requests for the secret
Generation uses crypto.getRandomValues() in your browser. Privacy policy
How to Use This Tool
Choose Session or CSRF — this only changes the .env variable name (SESSION_SECRET vs CSRF_SECRET). Entropy is identical.
Pick a byte length (32 / 48 / 64) and output format (base64url default, hex, or base64). Click Generate, then Copy or Copy for .env.
Paste into your deployment environment. Keep SESSION_SECRET distinct from JWT_SECRET. Optional CLI snippets mirror openssl / Node / Python.
Continue learning
ToolsJWT Secret Generator — RFC 7518–aware secrets for HS256/HS384/HS512.API Key Generator — Formatted API keys with optional prefixes.Passphrase Generator — Memorable diceware-style passphrases.