Python 3 fix for old ereader PDB DRM removal

This commit is contained in:
Apprentice Harper
2020-11-27 15:51:33 +00:00
parent 45038cc77b
commit c52e4db3df
2 changed files with 11 additions and 12 deletions

View File

@@ -76,7 +76,7 @@ def load_libcrypto():
return ob.raw
def decrypt(self, data):
if not data:
return ''
return b''
i = 0
result = []
while i < len(data):
@@ -84,6 +84,6 @@ def load_libcrypto():
processed_block = self.desdecrypt(block)
result.append(processed_block)
i += 8
return ''.join(result)
return b''.join(result)
return DES