instance method
encrypt_and_sign
Ruby on Rails 3.2.22.5
Since v2.3.18Signature
encrypt_and_sign(value)
Encrypt and sign a message. We need to sign 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 52
def encrypt_and_sign(value)
verifier.generate(_encrypt(value))
end
Defined in activesupport/lib/active_support/message_encryptor.rb line 52
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::MessageEncryptor