We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3434526 commit eb94dcbCopy full SHA for eb94dcb
superagi/helper/encyption_helper.py
@@ -2,6 +2,7 @@
2
3
from cryptography.fernet import Fernet, InvalidToken, InvalidSignature
4
from superagi.config.config import get_config
5
+from superagi.lib.logger import logger
6
# Generate a key
7
# key = Fernet.generate_key()
8
@@ -53,7 +54,7 @@ def decrypt_data(encrypted_data):
53
54
55
56
def is_encrypted(value):
- key = b'e3mp0E0Jr3jnVb96A31_lKzGZlSTPIp4-rPaVseyn58='
57
+ #key = get_config("ENCRYPTION_KEY")
58
try:
59
f = Fernet(key)
60
f.decrypt(value)
0 commit comments