hash

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Digest

func Digest(r io.Reader, result *DigestResult) (err error)

func DigestRange added in v0.5.1

func DigestRange(r io.ReadSeeker, rangeSpec string) (result string, err error)

func Md5Hex added in v0.3.1

func Md5Hex(str string) string

func ToBase64 added in v0.4.1

func ToBase64(h hash.Hash) string

func ToHex added in v0.4.1

func ToHex(h hash.Hash) string

func ToHexUpper added in v0.4.1

func ToHexUpper(h hash.Hash) string

Types

type DigestResult

type DigestResult struct {
	Size int64
	SHA1 string
	MD5  string
}

Jump to

Keyboard shortcuts

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