hash

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HmacSha1

func HmacSha1(data []byte, secret []byte) (output []byte)

HmacSha1 hash the data using algorithm hmac-sha1

func HmacSha256 added in v1.1.2

func HmacSha256(data []byte, secret []byte) (output []byte)

HmacSha256 hash the data using algorithm hmac-sha1

func Md5HexString

func Md5HexString(from []byte) string

Md5HexString returns md5 hash of data in hex format

func Sha1HexString

func Sha1HexString(data []byte) (output string)

Sha1HexString creates the hash of the data and return it in hex string format

func Sha256HexString

func Sha256HexString(data []byte) (output string)

Sha256HexString creates the hash of the data and return it in hex string format

Types

This section is empty.

Jump to

Keyboard shortcuts

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