method

encrypt_and_sign

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/.