module

Crypto::CBC

Class methods

decrypt(data : Bytes, key : Bytes, iv : Bytes) : Bytes

Decrypt a buffer using CBC256.

data must be a non-empty buffer of any length. key must be a 32 byte encryption key and iv must be 16 bytes.

Source
encrypt(data : Bytes, key : Bytes, iv : Bytes) : Bytes

Encrypt a buffer using CBC256.

data must be a non-empty buffer of any length. key must be a 32 byte encryption key and iv must be 16 bytes.

Source