hmac

package
v0.1.1-0...-4a89cbd Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: MPL-2.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