From 37b8db6a6cdf0a4a295b54cee38e2fd6426b95e5 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 19 Jul 2022 19:09:44 +0530 Subject: [PATCH] Island: Wrap missed encryption key with EncryptionKey32Bytes in DataStoreEncryptor --- .../cc/server_utils/encryption/data_store_encryptor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/server_utils/encryption/data_store_encryptor.py b/monkey/monkey_island/cc/server_utils/encryption/data_store_encryptor.py index 68bf8300f..ed491d888 100644 --- a/monkey/monkey_island/cc/server_utils/encryption/data_store_encryptor.py +++ b/monkey/monkey_island/cc/server_utils/encryption/data_store_encryptor.py @@ -32,7 +32,7 @@ class DataStoreEncryptor(IEncryptor): with open(self._key_file, "rb") as f: encrypted_key = f.read() - plaintext_key = self._password_based_encryptor.decrypt(encrypted_key) + plaintext_key = EncryptionKey32Bytes(self._password_based_encryptor.decrypt(encrypted_key)) return KeyBasedEncryptor(plaintext_key) def _create_key(self) -> KeyBasedEncryptor: