instance method
decrypt_and_verify
Ruby on Rails 7.0.10
Since v2.3.18Signature
decrypt_and_verify(data, purpose: nil, **)
Decrypt and verify a message. We need to verify the message in order to avoid padding attacks. Reference: www.limited-entropy.com/padding-oracle-attacks/.
Parameters
-
datareq -
purposekey = nil -
kwargskeyrest
Source
# File activesupport/lib/active_support/message_encryptor.rb, line 159
def decrypt_and_verify(data, purpose: nil, **)
_decrypt(verifier.verify(data), purpose)
end
Defined in activesupport/lib/active_support/message_encryptor.rb line 159
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::MessageEncryptor