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

Function stableAuthIndex

sdk/cliproxy/auth/types.go:289–296  ·  view source on GitHub ↗
(seed string)

Source from the content-addressed store, hash-verified

287}
288
289func stableAuthIndex(seed string) string {
290 seed = strings.TrimSpace(seed)
291 if seed == "" {
292 return ""
293 }
294 sum := sha256.Sum256([]byte(seed))
295 return hex.EncodeToString(sum[:8])
296}
297
298func (a *Auth) indexSeed() string {
299 if a == nil {

Callers 2

EnsureIndexMethod · 0.85

Calls

no outgoing calls