From 2e443f229a29635a69d9ea5bb4b332603b725e25 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 19 Jul 2022 19:11:01 +0530 Subject: [PATCH] UT: Wrap encryption key with EncryptionKey32Bytes in test_key_based_encryptor.py --- .../cc/server_utils/encryption/test_key_based_encryptor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/server_utils/encryption/test_key_based_encryptor.py b/monkey/tests/unit_tests/monkey_island/cc/server_utils/encryption/test_key_based_encryptor.py index bc6121fe1..7c36ed3b0 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/server_utils/encryption/test_key_based_encryptor.py +++ b/monkey/tests/unit_tests/monkey_island/cc/server_utils/encryption/test_key_based_encryptor.py @@ -1,6 +1,7 @@ import pytest from monkey_island.cc.server_utils.encryption import KeyBasedEncryptor +from monkey_island.cc.server_utils.encryption.encryption_key_types import EncryptionKey32Bytes PLAINTEXT = "password" # cryptography.fernet.Fernet.generate_key() generates a 32-bit key @@ -9,7 +10,7 @@ PLAINTEXT_UTF8_1 = "slaptažodis" # "password" in Lithuanian PLAINTEXT_UTF8_2 = "弟" # Japanese PLAINTEXT_UTF8_3 = "ж" # Ukranian -KEY = ( +KEY = EncryptionKey32Bytes( b"!\x8a\xa9\x91\xf5\x124\xfcB\xdd\xb6\xee-\x8c\x82D\xe1p\x954\r\xf4\x1d5\xa9;\xef2|\x81\xb5\x15" )