tokmd-redact
Privacy-safe redaction helpers for tokmd output.
Problem
Receipts need to preserve structure without leaking path details or other sensitive strings.
What it gives you
short_hashredact_path
API / usage notes
- Use
short_hashwhen you need a stable identifier. - Use
redact_pathwhen you want to hide path contents but keep file-type hints. - Path separators are normalized before hashing so Windows and Unix produce the same result.
src/lib.rsis the canonical source for the redaction rules.
Go deeper
- Tutorial: tokmd README
- How-to: Troubleshooting
- Reference: src/lib.rs
- Explanation: Design