MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / build_auth_token

Function build_auth_token

src/web/auth.py:29–32  ·  view source on GitHub ↗
(password: str, secret_key: str)

Source from the content-addressed store, hash-verified

27
28
29def build_auth_token(password: str, secret_key: str) -> str:
30 secret = _safe_value(secret_key).encode("utf-8")
31 pwd = _safe_value(password).encode("utf-8")
32 return hmac.new(secret, pwd, hashlib.sha256).hexdigest()
33
34
35def get_expected_auth_token() -> str:

Callers 2

get_expected_auth_tokenFunction · 0.85
login_submitFunction · 0.85

Calls 1

_safe_valueFunction · 0.85

Tested by

no test coverage detected