instance method
decrypt_and_verify
Ruby on Rails 4.0.13
Since v2.3.18Signature
decrypt_and_verify(value)
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
-
valuereq
Source
# File activesupport/lib/active_support/message_encryptor.rb, line 62
def decrypt_and_verify(value)
_decrypt(verifier.verify(value))
end
Defined in activesupport/lib/active_support/message_encryptor.rb line 62
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::MessageEncryptor