stephb9959
2022-11-14 09:17:29 -08:00
parent d10883b60d
commit c5aadffe1d
5 changed files with 29 additions and 15 deletions

View File

@@ -524,4 +524,11 @@ bool ExtractBase64CompressedData(const std::string &CompressedData,
return std::all_of(s.begin(),s.end(),[](char c) -> bool { return isalnum(c); });
}
std::string SanitizeToken(const std::string &Token) {
if(Token.size()>8) {
return Token.substr(0,4) + "****" + Token.substr(Token.size()-4,4);
}
return "*******";
}
}