'How do I keep grabbing bytes and encrypting them in Python?
cipher = Cipher(algorithms.AES(key), modes.CTR(iv))
decryptor = cipher.decryptor()
plaintext = decryptor.update(data[0:4])
paramEntry1 = int.from_bytes(plaintext,'big')
print(paramEntry1)
decryptor.update(data[0:4]) How do I go about making this keep pulling 4 bytes out of the file? I have it in a loop but its #giving me the same results?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|