.env · security

OpenSSL Rand 生成器 — 在线使用 openssl rand -base64 32

在浏览器中复制 openssl rand -base64 32 和 openssl rand -hex 的功能。选择字节数和编码方式。

Be the first to rate
Encoding
Bytes
Equivalent CLI command
openssl rand -base64 32
Output
Common use cases
openssl rand -base64 32— AUTH_SECRET, NEXTAUTH_SECRET
openssl rand -hex 32— API tokens, webhook secrets
openssl rand -base64 16— CSRF tokens, short-lived codes
openssl rand -hex 16— RAILS_MASTER_KEY