struct Iom::Encrypt::Encrypter
- Iom::Encrypt::Encrypter
- Struct
- Value
- Object
Defined in:
iom-encrypt.crConstant Summary
-
IV_SIZE =
16
Constructors
Instance Method Summary
- #algo : String
- #algo=(algo : String)
- #decrypt(data : String) : String
- #decrypt(data : EncryptedValue) : String
- #encrypt(data : String) : EncryptedValue
- #hmac_algo : OpenSSL::Algorithm
- #hmac_algo=(hmac_algo : OpenSSL::Algorithm)
- #key : String
- #key=(key : String)
Constructor Detail
def self.new(key : String, algo : String = "aes-256-cbc", hmac_algo : OpenSSL::Algorithm = OpenSSL::Algorithm::SHA256)
#