From c3a6c703a288b8e5fcf28f9a441d29674f089511 Mon Sep 17 00:00:00 2001 From: John Boiles Date: Thu, 21 Sep 2023 09:51:57 -0700 Subject: [PATCH] Decode serial from bytes before concatenation in libadobe.py --- calibre-plugin/libadobe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibre-plugin/libadobe.py b/calibre-plugin/libadobe.py index 8e264ad..a11901b 100644 --- a/calibre-plugin/libadobe.py +++ b/calibre-plugin/libadobe.py @@ -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)