Skip to content

Commit f5ac5c5

Browse files
try old sha? (#3469)
1 parent ca0ff85 commit f5ac5c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
4444
end

0 commit comments

Comments
 (0)