(apiKey string)
| 436 | } |
| 437 | |
| 438 | func 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. |
| 446 | func GenerateCommandID() string { |