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

Function hashKey

internal/sessions/manager.go:438–443  ·  view source on GitHub ↗
(apiKey string)

Source from the content-addressed store, hash-verified

436}
437
438func hashKey(apiKey string) string {
439 b := make([]byte, 16)
440 _, _ = rand.Read(b)
441 _ = apiKey // we just use a random hash for display privacy
442 return hex.EncodeToString(b)[:8]
443}
444
445// GenerateCommandID returns a unique ID for a pending command.
446func GenerateCommandID() string {

Callers 1

TouchMethod · 0.85

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected