Skip to main content

Module sanitize

Module sanitize 

Source
Expand description

Privacy scrubber for raw MTGA log text.

Strips sensitive data (auth tokens, bearer tokens, OS-specific user paths, session identifiers, display names, email addresses, IP addresses, and hardware fingerprint lines) from unstructured Player.log text. This is a best-effort filter; novel token formats may slip through.

Regex patterns are compiled once via std::sync::LazyLock and reused across all calls.

Structs§

ScrubOptions
Options controlling which classes of data are redacted by scrub_raw_log_with.

Functions§

scrub_raw_log
Redact PII and credentials from raw MTGA Player.log text.
scrub_raw_log_with
Redact PII and credentials from raw MTGA Player.log text with configurable options.