Fixed exception: 'TypeError: argument must be string or read-only buffer, not bytearray'

This commit is contained in:
Chris Sulmone 2018-03-16 00:46:08 -05:00
parent ab589175f3
commit c1a5abc6a9
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ class HexLoader:
if SCP_DEBUG:
print(binascii.hexlify(paddedData))
cipher = AES.new(self.scp_enc_key, AES.MODE_CBC, self.scp_enc_iv)
encryptedData = cipher.encrypt(paddedData)
encryptedData = cipher.encrypt(bytes(paddedData))
self.scp_enc_iv = encryptedData[-16:]
if SCP_DEBUG:
print(binascii.hexlify(encryptedData))