.env · security🔥 popular

NextAuth 密钥生成器 — Next.js 的 AUTH_SECRET

为 Auth.js v5 和 NextAuth v4 生成加密强度的 AUTH_SECRET 或 NEXTAUTH_SECRET。完全在浏览器中运行。

Be the first to rate
generated locally · crypto.getRandomValues · nothing sent anywhere
Auth.js v5 (Next.js 14+)
AUTH_SECRET — recommended for Auth.js v5 / next-auth v5
Raw secret
.env line
AUTH_SECRET=
NextAuth.js v4
NEXTAUTH_SECRET — legacy variable for next-auth@4
Raw secret
.env line
NEXTAUTH_SECRET=
JWT Secret (HS256/HS384, 48 bytes)
Higher entropy for custom JWT signing
Raw secret
.env line
JWT_SECRET=
CLI alternative
Auth.js built-in
npx auth secret
OpenSSL
openssl rand -base64 32