UT: Wrap encryption key with EncryptionKey32Bytes in test_key_based_encryptor.py
This commit is contained in:
parent
37b8db6a6c
commit
2e443f229a
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue