Hash Generator
Generate SHA-256, SHA-384, SHA-512 hashes and secure secrets for NextAuth / Auth.js. All computation is local.
Hash Text
NextAuth / Auth.js Secret Generator
Generate a cryptographically random secret for NEXTAUTH_SECRET or AUTH_SECRET.
How Hash Generator Works
Enter your text
Type or paste any text — a password, an API key, a filename, or any string you want to hash. Use the eye icon to toggle visibility for sensitive inputs.
Click Generate Hashes
SHA-256, SHA-384 and SHA-512 hashes are all generated simultaneously using the browser's Web Crypto API. For a NextAuth secret, click Generate Secret instead.
Copy the hash
Click the copy icon next to any hash to copy it to clipboard. For the NextAuth secret, copy the value and paste it into your .env.local file.
Key Features
SHA-256, SHA-384 & SHA-512
All three SHA-2 variants are generated simultaneously so you can pick whichever your system requires without running the tool twice.
NextAuth / Auth.js secret generator
Generates a cryptographically random 32-byte URL-safe Base64 secret — equivalent to running openssl rand -base64 32 — ready to paste into NEXTAUTH_SECRET.
Web Crypto API
Uses crypto.subtle.digest() — the browser's native cryptographic API. No third-party library is involved and nothing leaves your device.
Input masking
Toggle the eye icon to hide your input. Useful when hashing passwords or secrets on a shared screen.
Instant results
SHA-2 hashing is extremely fast. Results appear immediately even for long inputs.
New secret every click
Each click of Generate Secret produces a fresh cryptographically random value using crypto.getRandomValues() — never the same secret twice.