signature

package
v0.105.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL