hash

package
v0.0.0-...-a41d4d2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: MIT Imports: 4 Imported by: 1

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