Documentation ¶ Index ¶ func Sign(data string, secret string) (string, error) func Verify(data string, secret string, signature string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Sign ¶ func Sign(data string, secret string) (string, error) func Verify ¶ added in v0.104.0 func Verify(data string, secret string, signature string) bool Verify reports whether signature is a valid HMAC-SHA256 hex signature of data under secret. The comparison is constant-time to avoid leaking timing information. Types ¶ This section is empty. Source Files ¶ View all Source files sign.go Click to show internal directories. Click to hide internal directories.