Secret Key Generator
Generate cryptographically-strong secrets and session keys — pick crypto (hex) or openssl (base64) and a length.
Secret
Your secret will appear here.
Generated on the server with a CSPRNG. Free for signed-in users, up to 20 per day.
About generating secret keys
Strong secrets — JWT signing keys, session secrets, API tokens — must come from a cryptographically secure random source, never a password or a predictable string. This tool draws random bytes from the server’s CSPRNG (the same primitive behind Node’s crypto.randomBytes and openssl rand) and encodes them as hex or base64 at the byte length you choose. It’s free for registered users and capped at 20 generations per day.