From cbe842029a75ccf03cf8d6637dc4b8f4862274f3 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 19 Jul 2022 15:27:37 +0530 Subject: [PATCH] Island: Add details about what kind of key is acceptable in KeyBasedEncryptor --- .../cc/server_utils/encryption/key_based_encryptor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 a5cc1a6a7..8a46f2620 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 @@ -19,7 +19,8 @@ class KeyBasedEncryptor(IEncryptor): def __init__(self, key: bytes): """ Initializes a KeyBasedEncryptor object - :param bytes key: The encryption key with which the object should be initialized + :param bytes key: The encryption key with which the object should be initialized. + This should be a URL-safe base64-encoded 32-byte key. """ self._key = key self._fernet_object = Fernet(self._key)