File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -37,5 +37,8 @@ class Application < Rails::Application
3737 config . active_record . encryption . primary_key = [ ENV . fetch ( "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY" , "default_primary_key" ) ]
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" ) ]
40+ # for backwards compatibility's sake
41+ config . active_record . encryption . hash_digest_class = OpenSSL ::Digest ::SHA256 # New data uses SHA256
42+ config . active_record . encryption . support_sha1_for_non_deterministic_encryption = true # Allows decryption of old SHA1 data
4043 end
4144end
You can’t perform that action at this time.
0 commit comments