MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / maskKey

Function maskKey

internal/tui/keys_tab.go:400–405  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

398}
399
400func maskKey(key string) string {
401 if len(key) <= 8 {
402 return strings.Repeat("*", len(key))
403 }
404 return key[:4] + strings.Repeat("*", len(key)-8) + key[len(key)-4:]
405}

Callers 2

renderContentMethod · 0.85
renderProviderKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected