关于三倍des加解密

在这里插入图片描述


def triple_des_encrypt(key, plaintext):
    cipher = DES3.new(key, DES3.MODE_ECB)
    ciphertext = cipher.encrypt(plaintext)
    return ciphertext

def triple_des_decrypt(key, ciphertext):
    cipher = DES3.new(key, DES3.MODE_ECB)
    plaintext = cipher.

猜你喜欢

转载自blog.csdn.net/qq_45662588/article/details/135464650
今日推荐