pub fn obfuscate_secrets(input: String, secrets: Vec<String>) -> String {
    let mut out = input;
    for s in secrets {
        // If your secret is less than 8 characters, we won't obfuscate it
        // Mostly for fear of clashing with other parts of the output,
        // but also because it's an insecure secret anyway
        if s.len() >= 8 {
            out = out.replace(&s, "************");
        }
    }
    out
}
/// Obfuscate a set of secrets from an input string
Obfuscate a set of secrets from an input string
Obfuscate a set of secrets from an input string
pub fn obfuscate_secrets(input: String, secrets: Vec<String>) -> String {
    let mut out = input;
    for s in secrets {
        // If your secret is less than 8 characters, we won't obfuscate it
        // Mostly for fear of clashing with other parts of the output,
        // but also because it's an insecure secret anyway
        if s.len() >= 8 {
            out = out.replace(&s, "************");
        }
    }
    out
}
pub fn obfuscate_secrets ( input : String , secrets : Vec < String > ) -> String { let mut out = input ; for s in secrets { // If your secret is less than 8 characters, we won't obfuscate it // Mostly for fear of clashing with other parts of the output, // but also because it's an insecure secret anyway if s . len ( ) >= 8 { out = out . replace ( & s , " " ) ; } } out }
Obfuscate a set of secrets from an input string
Obfuscate a set of secrets from an input string
input
String
secrets
Vec<String>
input
String
secrets
Vec<String>