Skip to content

Conversation

vipulnsward
Copy link
Member

Deprecate passing a Class to ActiveSupport::Digest.hash_digest_class and instead accept a string.

Before:

    ActiveSupport::Digest.hash_digest_class = OpenSSL::Digest::SHA256

After:

    ActiveSupport::Digest.hash_digest_class = "SHA256"

Related discussions:
ruby/openssl#362
ruby/openssl#304
#39410
Sibling PR: #39504

This will also be helpful to upcoming rotation of algorithms moving to SHA256

@vipulnsward vipulnsward force-pushed the digest-deprecation branch 4 times, most recently from 53378c7 to 8af9005 Compare June 5, 2020 21:39
…cated in favour of String.

    Before:

        ActiveSupport::Digest.hash_digest_class = OpenSSL::Digest::SHA256

    After:

        ActiveSupport::Digest.hash_digest_class = "SHA256"

Related discussions:
ruby/openssl#362
ruby/openssl#304
rails#39410
Sibling PR: rails#39504
@rails-bot
Copy link

rails-bot bot commented Sep 5, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant