/sha1

Primary LanguageGoThe UnlicenseUnlicense

secure hash algorithm 1

Go Report Card

Usage

import "github.com/jancajthaml-go/sha1"

sha1.Digest([]byte("XXXX"))

Performance

BenchmarkSmall-4          1000000  1348 ns/op  480 B/op  6 allocs/op
BenchmarkLarge-4          1000000  1586 ns/op  480 B/op  6 allocs/op
BenchmarkSmallParallel-4  2000000   784 ns/op  480 B/op  6 allocs/op
BenchmarkLargeParallel-4  2000000   805 ns/op  480 B/op  6 allocs/op

verify your performance by running make benchmark

Resources