Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 688 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 688 Bytes

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