mirror of
https://github.com/Leseratte10/acsm-calibre-plugin
synced 2025-01-18 10:26:34 +01:00
Decode serial from bytes before concatenation in libadobe.py
This commit is contained in:
parent
cbc4c7e873
commit
c3a6c703a2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue