I have the following piece of code in Java that I want to replicate in Python.
public class AESDecryption { protect
The problem is that the server code uses a fixed IV (which is bad) with zeroes in it, but in your python code, you pass a new randomly generated IV to AES.new.
AES.new
You can replace rndfile.read(BLOCK_SIZE) with "\x00"*BLOCK_SIZE.
rndfile.read(BLOCK_SIZE)
"\x00"*BLOCK_SIZE