From 6d6b7e8cba99bee255e6a6b4490a55dcbd327c86 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 19 Jul 2022 19:07:05 +0530 Subject: [PATCH] Island: Remove unneeded docstring fields in KeyBasedEncryptor --- .../cc/server_utils/encryption/key_based_encryptor.py | 6 ++---- 1 file changed, 2 insertions(+), 4 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 b8da397b5..424b66f3d 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 @@ -30,17 +30,15 @@ class KeyBasedEncryptor(IEncryptor): def encrypt(self, plaintext: bytes) -> bytes: """ Encrypts a given bytestream - :param bytes plaintext: The bytestream to encrypt + :param plaintext: The bytestream to encrypt :return: Encrypted message - :rtype: bytes """ return self._fernet.encrypt(plaintext) def decrypt(self, ciphertext: bytes) -> bytes: """ Decrypts a given bytestream - :param bytes ciphertext: The bytestream to decrypt + :param ciphertext: The bytestream to decrypt :return: Decrypted message - :rtype: bytes """ return self._fernet.decrypt(ciphertext)