📜  DES-CBC python 代码示例

📅  最后修改于: 2022-03-11 14:47:16.793000             🧑  作者: Mango

代码示例1
>>> from Crypto.Cipher import DES
>>>
>>> key = b'-8B key-'
>>> cipher = DES.new(key, DES.MODE_OFB)
>>> plaintext = b'sona si latine loqueris '
>>> msg = cipher.iv + cipher.encrypt(plaintext)