MCPcopy
hub / github.com/TransformerOptimus/SuperAGI / decrypt_data

Function decrypt_data

superagi/helper/encyption_helper.py:41–52  ·  view source on GitHub ↗

Decrypts the given encrypted data using the Fernet cipher suite. Args: encrypted_data (str): The encrypted data to be decrypted. Returns: str: The decrypted data, decoded as a string.

(encrypted_data)

Source from the content-addressed store, hash-verified

39
40
41def decrypt_data(encrypted_data):
42 """
43 Decrypts the given encrypted data using the Fernet cipher suite.
44
45 Args:
46 encrypted_data (str): The encrypted data to be decrypted.
47
48 Returns:
49 str: The decrypted data, decoded as a string.
50 """
51 decrypted_data = cipher_suite.decrypt(encrypted_data.encode())
52 return decrypted_data.decode()
53
54
55def is_encrypted(value):

Callers 15

get_twitter_tool_configsFunction · 0.90
google_auth_calendarFunction · 0.90
get_llm_modelsFunction · 0.90
get_all_tool_configsFunction · 0.90
get_tool_configFunction · 0.90
get_credentialsMethod · 0.90
fetch_configurationMethod · 0.90
fetch_configurationsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected