hashutil

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashSum

func HashSum(path string, hash hash.Hash) ([]byte, error)

func Hmac

func Hmac(h func() hash.Hash, key, msg []byte) []byte

Hmac

func HmacSha1

func HmacSha1(key, msg []byte) []byte

HmacSha1

func HmacSha256

func HmacSha256(key, msg []byte) []byte

HmacSha256

func Md532

func Md532(data []byte) []byte

MD5-32

func Pbkdf2Sha256

func Pbkdf2Sha256(data, salt string, iterations int) string

Pbkdf2Sha256

func SHA1

func SHA1(data []byte) []byte

SHA-1

func SHA256

func SHA256(data []byte) []byte

SHA-256

func SHA384

func SHA384(data []byte) []byte

SHA-384

func SHA512

func SHA512(data []byte) []byte

SHA-512

Types

This section is empty.

Jump to

Keyboard shortcuts

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