libraries

package
v0.0.0-...-6279077 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMAC

func CheckMAC(message, messageMAC, key string) bool

CheckMAC verifies hash checksum

func Contains

func Contains(a []string, x string) bool

func GenerateHmac

func GenerateHmac(message string, key string) (hmacString string)

GenerateHmac generates the hmac

func GenerateSimpleHmac

func GenerateSimpleHmac(message string, key string) (hmacString string)

GenerateHmac generates the hmac

func LogPanic

func LogPanic(err error)

func MapTransform

func MapTransform(obj interface{}, name string, value interface{}) error

func Sign

func Sign(message, key string) string

Sign a message using sha256

func SignShaOne

func SignShaOne(message, key string) string

SignShaOne sign a message using sha1

func SpaceMap

func SpaceMap(str string) string

remove whitespace

func ValidateHmac

func ValidateHmac(hmacMessage string, payload string, key string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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