Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
def
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
15
def
decrypt(sas_token: str):
Callers
2
decrypt
Function · 0.85
encrypt
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected