hash

package module
Version: v0.0.0-...-40e3d21 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Unlicense Imports: 1 Imported by: 1

README

hash

`import "git.tcp.direct/kayos/common/hash"`

Usage

func Blake2bSum
func Blake2bSum(b []byte) []byte

Blake2bSum ignores all errors and gives you a blakae2b 64 hash value as a byte slice. (or panics somehow)

func BlakeEqual
func BlakeEqual(a []byte, b []byte) bool

BlakeEqual will take in two byte slices, hash them with blake2b, and tell you if the resulting checksums match.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blake2bSum

func Blake2bSum(b []byte) []byte

Blake2bSum ignores all errors and gives you a blakae2b 64 hash value as a byte slice. (or panics somehow)

func BlakeEqual

func BlakeEqual(a []byte, b []byte) bool

BlakeEqual will take in two byte slices, hash them with blake2b, and tell you if the resulting checksums match.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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