python 实现 DES CBC模式加解密
发布时间:2020-12-20 10:51:22 所属栏目:Python 来源:网络整理
导读:? ? # -*- coding=utf-8-*- from Crypto.Cipher import DES import base64 """ des cbc加密算法padding : PKCS5 """ class DESUtil: __BLOCK_SIZE_8 = BLOCK_SIZE_8 = DES.block_size __IV = " " # __IV = chr(0)*8 @staticmethod def encr
? ? # -*- coding=utf-8-*- from Crypto.Cipher import DES import base64 """ des cbc加密算法 padding : PKCS5 """ class DESUtil: __BLOCK_SIZE_8 = BLOCK_SIZE_8 = DES.block_size __IV = " |