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

Function _save_credentials

IntelOSINT.py:2094–2101  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

2092
2093
2094def _save_credentials(payload):
2095 enc = _encrypt_creds(payload)
2096 Path(CREDS_FILE).write_text(json.dumps(enc, indent=4, ensure_ascii=False), encoding="utf-8")
2097 if os.name != "nt":
2098 try:
2099 os.chmod(CREDS_FILE, 0o600)
2100 except Exception:
2101 pass
2102
2103
2104SENSITIVE_FIELD_NEEDLES = (

Callers 2

__init__Method · 0.85
save_credsMethod · 0.85

Calls 1

_encrypt_credsFunction · 0.85

Tested by

no test coverage detected