MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _encrypt_creds

Function _encrypt_creds

IntelOSINT.py:2028–2031  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

2026
2027
2028def _encrypt_creds(payload):
2029 raw = json.dumps(payload, ensure_ascii=False).encode("utf-8")
2030 token = Fernet(_fernet_key()).encrypt(raw).decode("ascii")
2031 return {"__cred_store": CRED_STORE_TAG_V2, "token": token}
2032
2033
2034def _decrypt_creds(record):

Callers 1

_save_credentialsFunction · 0.85

Calls 1

_fernet_keyFunction · 0.85

Tested by

no test coverage detected