From a7b4bbbd52a41e953336df59818e3868fe5bfb3f Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 19 Jul 2022 19:05:51 +0530 Subject: [PATCH] Island: Rename variable in KeyBasedEncryptor --- .../cc/server_utils/encryption/key_based_encryptor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 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 241292e0d..b8da397b5 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 @@ -25,7 +25,7 @@ class KeyBasedEncryptor(IEncryptor): initialized. """ self._formatted_key = base64.urlsafe_b64encode(key) - self._fernet_object = Fernet(self._formatted_key) + self._fernet = Fernet(self._formatted_key) def encrypt(self, plaintext: bytes) -> bytes: """ @@ -34,7 +34,7 @@ class KeyBasedEncryptor(IEncryptor): :return: Encrypted message :rtype: bytes """ - return self._fernet_object.encrypt(plaintext) + return self._fernet.encrypt(plaintext) def decrypt(self, ciphertext: bytes) -> bytes: """ @@ -43,4 +43,4 @@ class KeyBasedEncryptor(IEncryptor): :return: Decrypted message :rtype: bytes """ - return self._fernet_object.decrypt(ciphertext) + return self._fernet.decrypt(ciphertext)