TL;DR
cleaniquecoders/pii-protection now ships SecretScrubber (pattern-based), LiteralScrubber (exact-value), and RedactedStrategy (fixed placeholder).
Secrets and PII are different problems. Running the PII scrubber over an infrastructure log deletes exactly the detail you need to debug it.
Masking a secret should not preserve its length — length is itself a disclosure.
Exact-value masking has three non-obvious safety rules: longest-first, minimum length, and skip pure digits.






