Skip to main content

redact_secrets

Function redact_secrets 

Source
pub fn redact_secrets(text: &str) -> String
Expand description

Redact all detected secrets in the text, replacing them with [REDACTED].

Handles overlapping matches by processing from right to left.