From de0e6045186ead077017582c03097e679f3eda02 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 14 Jul 2022 07:59:59 -0400 Subject: [PATCH] Island: Remove disused IFieldEncryptor --- .../cc/server_utils/encryption/__init__.py | 1 - .../encryption/field_encryptors/__init__.py | 1 - .../field_encryptors/i_field_encryptor.py | 24 ------------------- 3 files changed, 26 deletions(-) delete mode 100644 monkey/monkey_island/cc/server_utils/encryption/field_encryptors/i_field_encryptor.py diff --git a/monkey/monkey_island/cc/server_utils/encryption/__init__.py b/monkey/monkey_island/cc/server_utils/encryption/__init__.py index 4d9306950..7425e4caf 100644 --- a/monkey/monkey_island/cc/server_utils/encryption/__init__.py +++ b/monkey/monkey_island/cc/server_utils/encryption/__init__.py @@ -14,4 +14,3 @@ from .data_store_encryptor import ( unlock_datastore_encryptor, reset_datastore_encryptor, ) -from .field_encryptors.i_field_encryptor import IFieldEncryptor diff --git a/monkey/monkey_island/cc/server_utils/encryption/field_encryptors/__init__.py b/monkey/monkey_island/cc/server_utils/encryption/field_encryptors/__init__.py index 96c7f3f18..e69de29bb 100644 --- a/monkey/monkey_island/cc/server_utils/encryption/field_encryptors/__init__.py +++ b/monkey/monkey_island/cc/server_utils/encryption/field_encryptors/__init__.py @@ -1 +0,0 @@ -from .i_field_encryptor import IFieldEncryptor diff --git a/monkey/monkey_island/cc/server_utils/encryption/field_encryptors/i_field_encryptor.py b/monkey/monkey_island/cc/server_utils/encryption/field_encryptors/i_field_encryptor.py deleted file mode 100644 index 6a675bf4d..000000000 --- a/monkey/monkey_island/cc/server_utils/encryption/field_encryptors/i_field_encryptor.py +++ /dev/null @@ -1,24 +0,0 @@ -from abc import ABC, abstractmethod -from typing import Any - - -class IFieldEncryptor(ABC): - @staticmethod - @abstractmethod - def encrypt(value: Any) -> Any: - """Encrypts data and returns the ciphertext. - - :param value: Data that will be encrypted - :return: Ciphertext generated by encrypting value - :rtype: Any - """ - - @staticmethod - @abstractmethod - def decrypt(value: Any): - """Decrypts data and returns the plaintext. - - :param value: Ciphertext that will be decrypted - :return: Plaintext generated by decrypting value - :rtype: Any - """