v1.0.0
blake3sum
BLAKE3 hashing — library + b3sum CLI
$ go install goforge.dev/blake3sum@latest
A fast BLAKE3 hashing library and a
b3sum-compatible command-line tool, written in Go and structured as a
goforge Polylith workspace.
Built for content and “essentia” hashing of compiler intermediate
representations: alongside the usual streaming and one-shot APIs it provides a
parallel batch API (HashMany) tuned for hashing many small, independent
nodes at once.
CLI
go install goforge.dev/blake3sum@latest
Library
import "goforge.dev/blake3sum/components/blake3"
sum := blake3.Sum256(data) // [32]byte, one-shot
sum := blake3.Hash(data) // alias for Sum256
ext := blake3.Sum512(data) // [64]byte
h := blake3.New(32, nil) // streaming, hash.Hash
h.Write(p)
digest := h.Sum(nil)
kh := blake3.NewKeyed(key32) // keyed mode (key is 32 bytes)