From 7013b96d769956742f1bd7326cce3016f789b9ab Mon Sep 17 00:00:00 2001 From: rhiroe Date: Thu, 11 Apr 2024 10:34:14 +0900 Subject: [PATCH] [ci skip] doc: updated the default digest algorithm used for key derivation in ActiveRecord Encryption to SHA256. https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#active-record-encryption-algorithm-changes ```ruby irb(main):001> Rails.configuration.active_record.encryption.hash_digest_class => OpenSSL::Digest::SHA256 irb(main):002> ActiveRecord::Encryption.config.hash_digest_class => OpenSSL::Digest::SHA256 ``` --- guides/source/active_record_encryption.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/active_record_encryption.md b/guides/source/active_record_encryption.md index 5aa20d5586762..e649b38e89de6 100644 --- a/guides/source/active_record_encryption.md +++ b/guides/source/active_record_encryption.md @@ -490,7 +490,7 @@ The default encoding for attributes encrypted deterministically. You can disable #### `config.active_record.encryption.hash_digest_class` -The digest algorithm used to derive keys. `OpenSSL::Digest::SHA1` by default. +The digest algorithm used to derive keys. `OpenSSL::Digest::SHA256` by default. #### `config.active_record.encryption.support_sha1_for_non_deterministic_encryption`