(self, text, secKey, iv, style='pkcs7')
return ciphertext
:param text: 文本
        :param secKey: 密钥
        :param iv: 初始iv  bytes
        :param style: 返回函数类型
        :return:
:param text: 文本
        :param secKey: 密钥
        :param iv: 初始iv  bytes
        :param style: 返回函数类型
        :return:
: param text : 文本 : param secKey : 密钥 : param iv : 初始iv bytes : param style : 返回函数类型 : return :
def aes_encrypt(self, text, secKey, iv, style='pkcs7'):
        """
        :param text: 文本
        :param secKey: 密钥
        :param iv: 初始iv  bytes
        :param style: 返回函数类型
        :return:
        """
        encryptor = AES.new(secKey.encode('utf-8'), AES.MODE_CBC, iv)
        pad_pkcs7 = pad(text.encode('utf-8'), AES.block_size, style=style)
        ciphertext = encryptor.encrypt(pad_pkcs7)
        return ciphertext
def aes_encrypt ( self , text , secKey , iv , style = 'pkcs7' ) : encryptor = AES . new ( secKey . encode ( 'utf-8' ) , AES . MODE_CBC , iv ) pad_pkcs7 = pad ( text . encode ( 'utf-8' ) , AES . block_size , style = style ) ciphertext = encryptor . encrypt ( pad_pkcs7 ) return ciphertext