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

Function get_key

api/helpers/cipher.py:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def get_key():
8 key = os.getenv("DB_ENCRYPTION_KEY", None)
9 if not key or key.strip() == "":
10 key = Fernet.generate_key()
11 os.environ["DB_ENCRYPTION_KEY"] = key.decode("utf-8")
12 return key
13
14
15def decrypt(sas_token: str):

Callers 2

decryptFunction · 0.85
encryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected