Decode serial from bytes before concatenation in libadobe.py

This commit is contained in:
John Boiles 2023-09-21 09:51:57 -07:00 committed by GitHub
parent cbc4c7e873
commit c3a6c703a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,7 @@ def makeFingerprint(serial):
devkey_bytes = f.read()
f.close()
str_to_hash = serial + devkey_bytes.decode('latin-1')
str_to_hash = serial.decode('latin-1') + devkey_bytes.decode('latin-1')
hashed_str = hashlib.sha1(str_to_hash.encode('latin-1')).digest()
b64str = base64.b64encode(hashed_str)