From eb94dcbf81bcab2137c8fbe6e6b1a861e55f8286 Mon Sep 17 00:00:00 2001 From: Rounak Bhatia Date: Tue, 30 Jan 2024 13:19:39 +0530 Subject: [PATCH] fixes for encryption_decryption (#1398) --- superagi/helper/encyption_helper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superagi/helper/encyption_helper.py b/superagi/helper/encyption_helper.py index ec49e3d39..174e40124 100644 --- a/superagi/helper/encyption_helper.py +++ b/superagi/helper/encyption_helper.py @@ -2,6 +2,7 @@ from cryptography.fernet import Fernet, InvalidToken, InvalidSignature from superagi.config.config import get_config +from superagi.lib.logger import logger # Generate a key # key = Fernet.generate_key() @@ -53,7 +54,7 @@ def decrypt_data(encrypted_data): def is_encrypted(value): - key = b'e3mp0E0Jr3jnVb96A31_lKzGZlSTPIp4-rPaVseyn58=' + #key = get_config("ENCRYPTION_KEY") try: f = Fernet(key) f.decrypt(value)