.env · security
Rails 密钥生成器 — SECRET_KEY_BASE 和 RAILS_MASTER_KEY
在浏览器中为 Ruby on Rails 生成 SECRET_KEY_BASE 和 RAILS_MASTER_KEY。与 rails secret 输出一致。
Be the first to rate
SECRET_KEY_BASE (128 hex chars)
Matches rails secret output — used to sign session cookies
Key
.env line
SECRET_KEY_BASE=RAILS_MASTER_KEY (32 hex chars)
Used to decrypt credentials.yml.enc
Key
.env line
RAILS_MASTER_KEY=CLI alternative
SECRET_KEY_BASE
rails secretRAILS_MASTER_KEY
openssl rand -hex 16Full tool page:/rails-secret-key-generator