feat: encrypt org auth tokens with AES (#3104)
This commit is contained in:
20
skyvern/forge/sdk/encrypt/base.py
Normal file
20
skyvern/forge/sdk/encrypt/base.py
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
Reference in New Issue
Block a user