.env · security
随机 JWT 密钥生成器 — HS256、HS384、HS512(base64)
即时生成随机 JWT 密钥 — base64url 编码,适用于 HS256、HS384 和 HS512 的正确字节长度。100% 客户端。
Be the first to rate
base64url-encoded · crypto.getRandomValues · in-browser only
HS256 (32 bytes)
Minimum for HMAC-SHA256
Secret
.env line
JWT_SECRET=HS384 (48 bytes)
HMAC-SHA384 — recommended default
Secret
.env line
JWT_SECRET=HS512 (64 bytes)
Maximum entropy for HMAC-SHA512
Secret
.env line
JWT_SECRET=CLI alternatives
HS256
openssl rand -base64 32HS384
openssl rand -base64 48HS512
openssl rand -base64 64Full tool page:/jwt-secret-generator