Skip to content

Commit 7013b96

Browse files
committed
[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 ```
1 parent bad7ff1 commit 7013b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_record_encryption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ The default encoding for attributes encrypted deterministically. You can disable
490490

491491
#### `config.active_record.encryption.hash_digest_class`
492492

493-
The digest algorithm used to derive keys. `OpenSSL::Digest::SHA1` by default.
493+
The digest algorithm used to derive keys. `OpenSSL::Digest::SHA256` by default.
494494

495495
#### `config.active_record.encryption.support_sha1_for_non_deterministic_encryption`
496496

0 commit comments

Comments
 (0)