Actions
Patch #35217
closedReplace use of Digest::MD5 / Digest::SHA1 with ActiveSupport::Digest
Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:
0%
Estimated time:
Description
Rails introduced ActiveSupport::Digest
to allow central configuration of the actual digest implementation that is used throughout Rails. This is helpful in environments where certain digest implementations (most notably, MD5) are not available, i.e. to be FIPS compliant.
The attached patch replaces all uses of Digest::SHA1
and Digest::MD5
with ActiveSupport::Digest
. Without further configuration, this will result in Digest::SHA1
being used in all these instances since that's the current Rails default. This can be changed by users via the config.active_support.hash_digest_class setting , i.e.:
Rails.application.config.active_support.hash_digest_class = OpenSSL::Digest::SHA256
Files
Related issues
Actions