Home / Secret Key Generators
Framework Secret Key Generators
Every framework expects its secret key in a slightly different format: different length, different character set, different encoding. These generators match each one exactly, so you can paste the output straight into your config without reformatting.
Choose your framework
Django
50-character default, Django's own charset (lowercase, digits, symbols).
Rails
128 hex characters, matches the built-in rails secret command.
NextAuth / Auth.js
Base64-encoded 32 bytes, matches the officially documented format.
Need Laravel's APP_KEY? Use the Encryption Key panel on the main generator, set to AES-256 / Base64. Same underlying value Laravel expects.
Why the format matters
A secret key that's merely "long and random" isn't always enough. Many frameworks validate or expect a specific length or character set, and some (like Rails) ship their own generator command specifically so the format is never in question. Each page here matches its framework's documented default exactly, generated locally via the Web Crypto API's crypto.getRandomValues(), so nothing you generate is ever sent anywhere.