hmac

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package hmac contains some nifty tools for manipulating HMAC signatures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(method string, secret string, message []byte) ([]byte, bool)

Sign returns the HMAC signature of the message using the specified hash

func Validate

func Validate(method string, secret string, message []byte, signature []byte) bool

Validate returns TRUE if the signature matches the message+secret using the specified hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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