hash

package
v0.0.0-...-bf8c89b Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT 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