From 061c002c9452fd19e6870b371950ea7bc3781616 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 19 Jul 2022 09:49:31 -0400 Subject: [PATCH] Island: Remove protected self._formatted_key member --- .../cc/server_utils/encryption/key_based_encryptor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/server_utils/encryption/key_based_encryptor.py b/monkey/monkey_island/cc/server_utils/encryption/key_based_encryptor.py index 424b66f3d..5a26f8f9d 100644 --- a/monkey/monkey_island/cc/server_utils/encryption/key_based_encryptor.py +++ b/monkey/monkey_island/cc/server_utils/encryption/key_based_encryptor.py @@ -24,8 +24,8 @@ class KeyBasedEncryptor(IEncryptor): :param EncryptionKey32Bytes key: The encryption key with which the object should be initialized. """ - self._formatted_key = base64.urlsafe_b64encode(key) - self._fernet = Fernet(self._formatted_key) + formatted_key = base64.urlsafe_b64encode(key) + self._fernet = Fernet(formatted_key) def encrypt(self, plaintext: bytes) -> bytes: """