mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-05-01 21:20:19 +00:00
20 lines
376 B
Python
20 lines
376 B
Python
from abc import ABC, abstractmethod
|
|
from enum import Enum
|
|
|
|
|
|
class EncryptMethod(Enum):
|
|
AES = "aes"
|
|
|
|
|
|
class BaseEncryptor(ABC):
|
|
@abstractmethod
|
|
def method(self) -> EncryptMethod:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def encrypt(self, plaintext: str) -> str:
|
|
pass
|
|
|
|
@abstractmethod
|
|
async def decrypt(self, ciphertext: str) -> str:
|
|
pass
|