fork download
  1. from Crypto.Cipher import DES
  2. from timeit import default_timer as timer
  3. start = timer()
  4. des3 = DES.new('01234567', DES.MODE_ECB)
  5. text = 'abcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefgh'
  6. cipher_text = des3.encrypt(text)
  7. print (cipher_text)
  8. end = timer()
  9. print(end - start)
Success #stdin #stdout 0.02s 9808KB
stdin
Standard input is empty
stdout
b'\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0\xec\xc2\x9e\xd9] a\xd0'
2.9947608709335327e-05