method
decrypt_and_verify
v6.0.0 -
Show latest stable
- Class:
ActiveSupport::MessageEncryptor
decrypt_and_verify(data, purpose: nil, **)public
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/.