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

Refactor MessageEncryptor and MessageVerifier #47325

Conversation

jonathanhefner
Copy link
Member

@jonathanhefner jonathanhefner commented Feb 8, 2023

This factors common methods into a ActiveSupport::Messages::Codec base class. This also disentangles serialization (and deserialization) from encryption (and decryption) in MessageEncryptor.


This is in preparation for #47326, which improves how failures are handled when verifying messages.

This factors common methods into a `ActiveSupport::Messages::Codec` base
class.  This also disentangles serialization (and deserialization) from
encryption (and decryption) in `MessageEncryptor`.
@jonathanhefner jonathanhefner force-pushed the message_encryptor-and-message_verifier-refactor branch from 13fe13f to 91b2a15 Compare February 8, 2023 23:22
@jonathanhefner jonathanhefner merged commit bba0db7 into rails:main Feb 8, 2023
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