method
encrypt_and_sign
v6.1.3.1 -
Show latest stable
- Class:
ActiveSupport::MessageEncryptor
encrypt_and_sign(value, expires_at: nil, expires_in: nil, purpose: nil)public
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/.