Secrets for developers

Keys and passwords in exactly the format your framework expects — generated in your browser, nothing is stored.

Every tool on this page is also available machine-readable: API

Frequently asked questions

What is a framework secret?

A random value a framework uses to sign and encrypt sessions, cookies or tokens. It is not a password for humans but a key for the application — which is why it has to come from a cryptographically secure source.

Where does the value belong in my project?

In an environment variable, usually through a .env file or your hosting platform's secret management. It does not belong in the repository — not even in an example file that accidentally carries real values.

When do I have to rotate a secret?

As soon as you suspect it leaked: committed by accident, written to a log, sitting on a compromised server. Plan the rotation deliberately — depending on the framework it invalidates existing sessions or makes encrypted data unreadable.