Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSensitiveKeys = map[string]struct{}{
"token": {},
"passkey": {},
"password": {},
"auth": {},
"cookie": {},
"csrf": {},
"email": {},
"username": {},
"user": {},
"key": {},
"info_hash": {},
"anticsrftoken": {},
"torrent_pass": {},
"popcron": {},
}
Functions ¶
func RedactPrivateInfo ¶
RedactPrivateInfo recursively redacts sensitive values in JSON-like data.
func RedactValue ¶
RedactValue redacts sensitive content in a string.
Types ¶
Click to show internal directories.
Click to hide internal directories.