common/hash
kayos@tcp.direct 40e3d2190a
Modularize
2022-02-10 04:54:55 -08:00
..
README.md #justcommonthingz 2022-02-08 04:21:57 -08:00
go.mod Modularize 2022-02-10 04:54:55 -08:00
go.sum Modularize 2022-02-10 04:54:55 -08:00
hash.go #justcommonthingz 2022-02-08 04:21:57 -08:00

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.