struct Iom::Encrypt::Encrypter

Defined in:

iom-encrypt.cr

Constant Summary

IV_SIZE = 16

Constructors

Instance Method Summary

Constructor Detail

def self.new(key : String, algo : String = "aes-256-cbc", hmac_algo : OpenSSL::Algorithm = OpenSSL::Algorithm::SHA256) #

[View source]

Instance Method Detail

def algo : String #

[View source]
def algo=(algo : String) #

[View source]
def decrypt(data : String) : String #

[View source]
def decrypt(data : EncryptedValue) : String #

[View source]
def encrypt(data : String) : EncryptedValue #

[View source]
def hmac_algo : OpenSSL::Algorithm #

[View source]
def hmac_algo=(hmac_algo : OpenSSL::Algorithm) #

[View source]
def key : String #

[View source]
def key=(key : String) #

[View source]