(plaintext string)
| 3375 | } |
| 3376 | |
| 3377 | func hashAPIKey(plaintext string) string { |
| 3378 | h := sha256.Sum256([]byte(plaintext)) |
| 3379 | return hex.EncodeToString(h[:]) |
| 3380 | } |
| 3381 | |
| 3382 | // CreateAPIKey issues a fresh ACCOUNT-scoped API key for the user. expiresAt is |
| 3383 | // the optional hard expiration; pass nil to issue a never-expiring key (the |
no outgoing calls
no test coverage detected