Skip to content

miniproto.security.redaction.redact_text

redact_text(text: str) -> str

Mask recognized key=value and key: value secrets in text.

Parameters:

  • text (str) – Text that may contain supported sensitive assignments.

Returns:

  • str – Text with matched values replaced by the redaction marker.