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

Function is_encrypted

superagi/helper/encyption_helper.py:55–64  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

53
54
55def is_encrypted(value):
56 key = b'e3mp0E0Jr3jnVb96A31_lKzGZlSTPIp4-rPaVseyn58='
57 try:
58 f = Fernet(key)
59 f.decrypt(value)
60 return True
61 except (InvalidToken, InvalidSignature):
62 return False
63 except (ValueError, TypeError):
64 return False

Callers 9

get_twitter_tool_configsFunction · 0.90
google_auth_calendarFunction · 0.90
get_all_tool_configsFunction · 0.90
get_tool_configFunction · 0.90
get_credentialsMethod · 0.90
get_tool_configMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected