Crypt::Crypter
Encrypt / Decrypt using OpenSSL Cipher. See https://crystal-lang.org/api/OpenSSL/Cipher.html
Constructors
Instance methods
Encrypt the value which should be decrypted by cipher_decrypt.
See also encrypt, encrypt_and_sign.
Equivalent to verify_and_decrypt, just a shortcut.
Equivalent to verify_and_decrypt, just a shortcut.
Equivalent to encrypt_and_sign, just a shortcut.
Equivalent to encrypt_and_sign, just a shortcut.
Encrypt and sign a value. We need to sign the value in order to avoid padding attacks. Reference: http://www.limited-entropy.com/padding-oracle-attacks.
Encrypt and sign a value. We need to sign the value in order to avoid padding attacks. Reference: http://www.limited-entropy.com/padding-oracle-attacks.
Verify and decrypt a signed value. We need to verify the value in order to avoid padding attacks. Reference: http://www.limited-entropy.com/padding-oracle-attacks.