hash

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Unlicense Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sum added in v0.5.5

func Sum(ht Type, b []byte) []byte

func SumFile added in v0.9.6

func SumFile(ht Type, path string) (buf []byte, err error)

SumFile will attempt to calculate a blake2b checksum of the given file path's contents.

Types

type Type added in v0.5.5

type Type int8
const (
	TypeNull Type = iota
	TypeBlake2b
	TypeSHA1
	TypeSHA256
	TypeSHA512
	TypeMD5
	TypeCRC32
	TypeCRC64ISO
	TypeCRC64ECMA
)

func StringToType added in v0.9.6

func StringToType(s string) Type

func (Type) String added in v0.9.6

func (t Type) String() string

Jump to

Keyboard shortcuts

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