Help us shape the future of Go! Take the 2026 Go Developer Survey

hmacutil

package
v0.4.29 Latest Latest
Warning

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

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

Documentation

Overview

Package hmacutil provides HMAC-SHA256 signing and verification helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(key []byte, message string) []byte

Sign returns the HMAC-SHA256 signature for message using key.

func Verify

func Verify(key []byte, message string, providedMAC []byte) bool

Verify reports whether providedMAC is a valid HMAC-SHA256 signature for message using key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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