(seed string)
| 287 | } |
| 288 | |
| 289 | func 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 | |
| 298 | func (a *Auth) indexSeed() string { |
| 299 | if a == nil { |
no outgoing calls