fork download
  1. from Crypto.Cipher import AES
  2. from Crypto import Random
  3.  
  4. key = b'Sixteen byte key'
  5. iv = Random.new().read(AES.block_size)
  6. cipher = AES.new(key, AES.MODE_CFB, iv)
  7. msg = iv + cipher.encrypt(b'Attack at dawn')
Success #stdin #stdout 0.05s 13420KB
stdin
Standard input is empty
stdout
Standard output is empty