pub fn redact_auth_body(body: &str) -> StringExpand description
v1.4.84 SEC-001: 给一段 JSON-like / key=value text 做 redaction.
支持两种格式:
- JSON body:
{"tgtgt":"abc","account":"xxx"}→ credential redaction plus anacc-*identity fingerprint. - URL-encoded form:
tgtgt=abc&account=xxx→ credential redaction plus anacc-*identity fingerprint. - 自由格式 (key=value 空格分隔):
salt=abc svr_time=123→salt=<REDACTED len=3> svr_time=123
Login identity fields are fingerprinted; non-identity context remains.