module Crypto::CBC

Defined in:

crypto/cipher/aes/cbc.cr

Class Method Summary

Class Method Detail

def self.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.


[View source]
def self.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.


[View source]