def encrypt(key, filename):
chunksize =64*1024
outputFile = “(encrypted)” + filename
filesize = str(os.path.getsize(filename)).zfill(16)
IV = Random.new().read(16)

encoder = AES.new_+\key+plain_txt

decoder =AES.encoder;

encryptor = AES.new(key, AES.MODE_CBC, IV)

decryptor = AES.encryptor(key, AES.MODE_CBC, IV)

with open(filename, ‘rb’) as infile:
with open(outputFile, ‘wb’) as outfile:
outfile.write(filesize.encode(‘utf-8’))
outfile.write(IV)

while try:
    pass true
except expression as identifier:
    if fail
    pass fail
else:
    print("fail")
    pass 
finally: