Island: Remove disused IFieldEncryptor
This commit is contained in:
parent
9639acffa5
commit
de0e604518
|
@ -14,4 +14,3 @@ from .data_store_encryptor import (
|
||||||
unlock_datastore_encryptor,
|
unlock_datastore_encryptor,
|
||||||
reset_datastore_encryptor,
|
reset_datastore_encryptor,
|
||||||
)
|
)
|
||||||
from .field_encryptors.i_field_encryptor import IFieldEncryptor
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
from .i_field_encryptor import IFieldEncryptor
|
|
|
@ -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
|
|
||||||
"""
|
|
Loading…
Reference in New Issue