mirror of
https://github.com/Leseratte10/acsm-calibre-plugin.git
synced 2024-12-23 01:34:36 +06:00
Decode serial from bytes before concatenation in libadobe.py
This commit is contained in:
parent
cbc4c7e873
commit
c3a6c703a2
@ -235,7 +235,7 @@ def makeFingerprint(serial):
|
|||||||
devkey_bytes = f.read()
|
devkey_bytes = f.read()
|
||||||
f.close()
|
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()
|
hashed_str = hashlib.sha1(str_to_hash.encode('latin-1')).digest()
|
||||||
b64str = base64.b64encode(hashed_str)
|
b64str = base64.b64encode(hashed_str)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user