Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate passing a Class to ActiveSupport::Digest.hash_digest_class #39540

Closed
wants to merge 1 commit into from

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.

None yet

1 participant