Skip to main content

mask

Function mask 

Source
pub fn mask(input: &str) -> String
Expand description

Mask all known secret patterns in input.

Idempotent: running twice produces the same output (the replacement [REDACTED:<kind>] contains no characters that match any pattern).