Versions in this module Expand all Collapse all v1 v1.1.0 Jan 8, 2019 v1.0.0 Mar 28, 2018 Changes in this version + var ErrInvalidAlgorithm = errors.New("aesecb: invalid encryption algorithm") + type AESSize int + const AES128 + const AES256 + type Crypto interface + Decrypt func(encryptedText string) (string, error) + DecryptStruct func(encryptedInstance interface{}) (interface{}, error) + Encrypt func(text string) (string, error) + EncryptStruct func(instance interface{}) (interface{}, error) + func NewAES128ECB(key string) Crypto + func NewAESECB(size AESSize, key string) Crypto