Island: Remove disused IFieldEncryptor

This commit is contained in:
Mike Salvatore 2022-07-14 07:59:59 -04:00
parent 9639acffa5
commit de0e604518
3 changed files with 0 additions and 26 deletions

View File

@ -14,4 +14,3 @@ from .data_store_encryptor import (
unlock_datastore_encryptor,
reset_datastore_encryptor,
)
from .field_encryptors.i_field_encryptor import IFieldEncryptor

View File

@ -1 +0,0 @@
from .i_field_encryptor import IFieldEncryptor

View File

@ -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
"""