hash

package
v0.0.0-...-a90bdd0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHA_256 = "sha-256"
)

Supported hash functions

Variables

This section is empty.

Functions

func IsCorrect

func IsCorrect(h []byte, engine string) bool

IsCorrect ...

Types

type Function

type Function func([]byte) Hash

Function

func BuildFunction

func BuildFunction(engine string, doubleHash ...bool) (fn Function, err error)

BuildFunction ...

type Hash

type Hash = []byte

Hash ...

type Hashes

type Hashes = []Hash

Hashes ...

func SortHashes

func SortHashes(input Hashes) Hashes

SortHashes lexicographically sort the passed hashes

Jump to

Keyboard shortcuts

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