sha

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RxShasum64 = regexp.MustCompile(`^([a-f0-9]{64})$`)
	RxShasum10 = regexp.MustCompile(`^([a-f0-9]{10})$`)
)

Functions

func DataHash10

func DataHash10(data []byte) (shasum string, err error)

func DataHash64

func DataHash64(data []byte) (shasum string, err error)

func DataHashSha1

func DataHashSha1(data []byte) (shasum string)

func FileHash10

func FileHash10(path string) (shasum string, err error)

func FileHash64

func FileHash64(path string) (shasum string, err error)

func VerifyFile64

func VerifyFile64(sum, file string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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