Skip to content

Commit

Permalink
fixes for encryption_decryption (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
rounak610 committed Jan 30, 2024
1 parent 3434526 commit eb94dcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superagi/helper/encyption_helper.py
Expand Up @@ -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()

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit eb94dcb

Please sign in to comment.