MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / decrypt

Function decrypt

api/helpers/cipher.py:15–23  ·  view source on GitHub ↗
(sas_token: str)

Source from the content-addressed store, hash-verified

13
14
15def decrypt(sas_token: str):
16 if not sas_token:
17 return None
18 key = get_key()
19 if not key:
20 return None
21 cipher_suite = Fernet(key)
22 plain_text = cipher_suite.decrypt(sas_token)
23 return SecretStr(plain_text.decode("utf-8"))
24
25
26def encrypt(sas_token: SecretStr):

Callers 8

syncFunction · 0.90
generate_sas_tokenFunction · 0.90
get_sas_tokenFunction · 0.90
get_iq_dataFunction · 0.90
get_iqfileFunction · 0.90
get_minimap_iqFunction · 0.90
get_meta_thumbnailFunction · 0.90
add_URL_sasTokenFunction · 0.85

Calls 1

get_keyFunction · 0.85

Tested by

no test coverage detected