Back to

Package sha1

Latest Go to latest
Published: Jul 18, 2020 | License: Apache-2.0 | Module:


Package Files


const BlockSize = 64

The blocksize of SHA-1 in bytes.

const Size = 20

The size of a SHA-1 checksum in bytes.

func Sum

func Sum(data []byte) []byte

Sum returns the SHA-1 checksum of the data.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier