From 11d3aea0d4481169d54ff41a3b41a69a46662563 Mon Sep 17 00:00:00 2001 From: Paul Feitzinger Date: Wed, 27 Nov 2024 00:05:46 -0500 Subject: [PATCH] fix bug handling default "peanut"-encrypted encryptedKey --- code/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/utils.py b/code/utils.py index 17becd4..6e19e97 100644 --- a/code/utils.py +++ b/code/utils.py @@ -26,7 +26,7 @@ iv = b' ' * 16 def decrypt_encrypted_key(password, encrypted_key): encrypted_key = bytes.fromhex(encrypted_key) if encrypted_key.startswith(b'v10'): - encrypted_key = b'peanuts' + password = 'peanuts' logger.warning(f'encryptedKey in config.json is encrypted using the default `peanuts` key') elif encrypted_key.startswith(b'v11'): encrypted_key = encrypted_key[3:]