Versions in this module Expand all Collapse all v0 v0.64.14 May 22, 2026 v0.64.13 May 22, 2026 Changes in this version + var APIKeySpec = Spec + var AgentserverTokenSpec = Spec + var ErrInvalidFormat = fmt.Errorf("secrets: invalid token format") + func ConstantTimeMatch(presented, storedHash string) bool + func Hash(full string) string + func Parse(spec Spec, full string) (id, secret string, err error) + func RandomHex(nBytes int) (string, error) + func SetPepper(b []byte) + type Spec struct + IDLen int + Prefix string + SecretLen int + type Token struct + Full string + Hash string + ID string + Secret string + func Mint(spec Spec) (Token, error)