Versions in this module Expand all Collapse all v1 v1.0.1 Jun 28, 2023 v1.0.0 Jun 21, 2023 Changes in this version + func AssertIV(iv []byte) + func AssertKey(key []byte) + func PKCS7Padding(cipherText []byte, blockSize int) []byte + func PKCS7UnPadding(cihperData []byte) []byte + func Register(aesType AES_Mode, inst instance) + type AES_Mode int + const AES_Mode_CBC + const AES_Mode_CFB + const AES_Mode_CTR + const AES_Mode_ECB + const AES_Mode_OFB + func (t AES_Mode) GoString() string + func (t AES_Mode) String() string + type CryptoAES interface + Decrypt func([]byte) ([]byte, error) + DecryptBase64 func(string) ([]byte, error) + DecryptHex func(string) ([]byte, error) + Encrypt func([]byte) ([]byte, error) + EncryptBase64 func([]byte) (string, error) + EncryptHex func([]byte) (string, error) + GetMode func() AES_Mode + func NewCryptoAES(aesType AES_Mode, key, iv []byte) CryptoAES