Source code for alibabacloud_oss_v2.crypto.cipher
import abc
from typing import Any
[docs]
class Encrypter(abc.ABC):
"""Encrypter is interface with only encrypt method"""
[docs]
@abc.abstractmethod
def encrypt(self, reader: Any) -> Any:
"""encrypt
"""
[docs]
class Decrypter(abc.ABC):
"""Decrypter is interface with only decrypt method"""
[docs]
@abc.abstractmethod
def decrypt(self, reader: Any) -> Any:
"""decrypt
"""
[docs]
class Cipher(Encrypter, Decrypter):
"""Cipher
"""