(key string)
| 325 | } |
| 326 | |
| 327 | func decodeKey(key string) ([]byte, error) { |
| 328 | return base32.StdEncoding.DecodeString(strings.ToUpper(key)) |
| 329 | } |
| 330 | |
| 331 | func hotp(key []byte, counter uint64, digits int) int { |
| 332 | h := hmac.New(sha1.New, key) |
no outgoing calls
no test coverage detected