string.second()
Detects and masks sensitive information (such as passwords, API keys, tokens, etc.) from a given string. The function identifies patterns commonly used for sensitive data and replaces them with a mask.
string.second( replacement=string )
Returns: String
Argument | Description |
---|---|
replacement
string,
optional
|
The replacement string to use as a mask for sensitive data. If not specified, defaults to "****". Alias: mask |