fork download
  1. from Crypto.Cipher import DES
  2. des = DES.new('nathalye', DES.MODE_ECB)
  3. text = 'abcdefgh'
  4. cipher_text = des.encrypt(text)
  5. print (cipher_text)
  6. des.decrypt(cipher_text)
Success #stdin #stdout 0.02s 9248KB
stdin
Standard input is empty
stdout
b"4\xd2\x9e'_\xb6\xef\xed"