hash

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HMACSHA256

func HMACSHA256(secret, data []byte) ([]byte, error)

HMACSHA256 HMAC use sha256 as hash algorithm

func HexEncode

func HexEncode(data []byte) string

HexEncode string 2 hex

func SHA256

func SHA256(data []byte) ([]byte, error)

SHA256 hash algorithm

Types

This section is empty.

Jump to

Keyboard shortcuts

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