.env · security
Rails Secret Key Generator — SECRET_KEY_BASE & RAILS_MASTER_KEY
Generiere SECRET_KEY_BASE und RAILS_MASTER_KEY für Ruby on Rails im Browser. Entspricht der Ausgabe von 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