hmac

package
v0.0.0-...-2d04a2c Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package hmac implements HMAC validation with shared secret

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHash

func CreateHash(message, key []byte, shaVersion string) ([]byte, error)

CreateHash a message with the key and return bytes.

func Verify

func Verify(bytesIn []byte, encodedHash string, secretKey string, shaVersion string) error

Verify validates an encodedHash

Types

This section is empty.

Jump to

Keyboard shortcuts

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