File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class Application < Rails::Application
3838 config . active_record . encryption . key_derivation_salt = ENV . fetch ( "ACTIVE_RECORD_KEY_DERIVATION_SALT" , "default_salt" )
3939 config . active_record . encryption . deterministic_key = [ ENV . fetch ( "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY" , "default_deterministic_key" ) ]
4040 # for backwards compatibility's sake
41- config . active_record . encryption . hash_digest_class = OpenSSL ::Digest ::SHA256 # New data uses SHA256
41+ config . active_record . encryption . hash_digest_class = OpenSSL ::Digest ::SHA1 # New data uses SHA256, but old rails had this as a default
4242 config . active_record . encryption . support_sha1_for_non_deterministic_encryption = true # Allows decryption of old SHA1 data
4343 end
4444end
You can’t perform that action at this time.
0 commit comments