hash

package
v0.0.0-...-04eba25 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(sumType SumType, data []byte) []byte

func HashString

func HashString(sumType SumType, data string) []byte

func MD5

func MD5(data []byte) [16]byte

func MD5String

func MD5String(data string) [16]byte

func SHA1

func SHA1(data []byte) [20]byte

func SHA1String

func SHA1String(data string) [20]byte

func SHA224

func SHA224(data []byte) [28]byte

func SHA224String

func SHA224String(data string) [28]byte

func SHA256

func SHA256(data []byte) [32]byte

func SHA256String

func SHA256String(data string) [32]byte

func SHA384

func SHA384(data []byte) [48]byte

func SHA384String

func SHA384String(data string) [48]byte

func SHA3_224

func SHA3_224(data []byte) [28]byte

func SHA3_224String

func SHA3_224String(data string) [28]byte

func SHA3_256

func SHA3_256(data []byte) [32]byte

func SHA3_256String

func SHA3_256String(data string) [32]byte

func SHA3_384

func SHA3_384(data []byte) [48]byte

func SHA3_384String

func SHA3_384String(data string) [48]byte

func SHA3_512

func SHA3_512(data []byte) [64]byte

func SHA3_512String

func SHA3_512String(data string) [64]byte

func SHA512

func SHA512(data []byte) [64]byte

func SHA512String

func SHA512String(data string) [64]byte

func SHA512_224

func SHA512_224(data []byte) [28]byte

func SHA512_224String

func SHA512_224String(data string) [28]byte

func SHA512_256

func SHA512_256(data []byte) [32]byte

func SHA512_256String

func SHA512_256String(data string) [32]byte

Types

type SumType

type SumType = int8
const (
	SumMD5 SumType = iota
	SumSHA1
	SumSHA224
	SumSHA256
	SumSHA384
	SumSHA512
	SumSHA512_256
	SumSHA3_224
	SumSHA3_256
	SumSHA3_384
	SumSHA3_512
)

Jump to

Keyboard shortcuts

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