Pick what the secret is for and get a strong random value in the right format, with an optional prefix and .env line, generated on your device.
Generated in your browser with crypto.getRandomValues. Nothing is sent or stored.
Pyalm Labs builds secure software and runs it on properly configured servers, with secrets in managed vaults, rotated keys and least-privilege access. Need that done right? Talk to us.
Use at least 32 random bytes (256 bits) for signing and encryption keys such as JWT secrets, session secrets and AES-256 keys. That is far beyond what can be guessed, and it is what openssl rand -base64 32 produces. Shorter secrets are only acceptable for low-value tokens with expiry and rate limits.
The format doesn't change the strength; the number of random bytes does. Base64URL is safe in URLs, headers and .env files. Hex is common for encryption keys. Letters and digits suit API keys that users copy by double-clicking, and a prefix such as sk_live_ makes keys easy to recognise and to catch with secret scanners.
Create strong, random passwords with the length and character mix you choose.
Generate UUID v4 and time-ordered v7 IDs in bulk, and validate any UUID.
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes from any text.
Decode a JSON Web Token's header and payload and read its claims and expiry.
Yes. They come from your browser's cryptographically secure random generator (crypto.getRandomValues), and nothing is sent to a server or stored. As with any secret, keep it out of code and Git, and paste it only into your environment variables or secrets manager.
Choose the JWT / session secret preset. It creates 32 random bytes encoded as Base64URL, which suits HS256 signing. For RS256 or ES256 you need a key pair instead of a shared secret.
A random 32-byte value in Base64, the same as running openssl rand -base64 32. Use the Auth.js / NextAuth preset and paste the .env line into your project.
No. Use a different secret per environment, so a leaked development key can't be used against production, and rotate any secret that has been shared in chat, email or a commit.