Chaos

Type your comment> @trodix said:

On the decryption part I have a Input strings must be a multiple of 16 in length problem

The CHUNK of the encrypt function is 64 * 1024 = 65536, so modulo 16 and modulo 2.
The file size need to be modulo 16, Why It’s not ?
I got a chunk of 8196 when I open the file, so modulo 2
How can I solve this problem ?
Don’t like mathematics… :angry:

UPDATE: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x88 in position 2: invalid start byte

Seems like you’re thinking about it more than you need to.
My advice for the decrypt function:
Don’t forget about the second function provided to you in the file. You’ll definitely need it.
Look at the how the encrypt function builds the resulting “encrypted” file.

If you (or anyone else) needs any more hints just DM me. :smile: