hash

package
v0.0.0-...-926d7b1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMAC

type HMAC struct {
	// contains filtered or unexported fields
}

HMAC is a wrapper around the crypto/hmac package making it a little easier to use in our code.

func NewHMAC

func NewHMAC(key string) HMAC

NewHMAC creates and returns a new HMAC object.

func (HMAC) Hash

func (h HMAC) Hash(input string) string

Hash will hash the provided input string using HMAC with the secret key provided when the HMAC object was created.

Jump to

Keyboard shortcuts

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