package sha1
import "crypto/sha1"
Package sha1 implements the SHA-1 hash algorithm as defined in RFC 3174.
SHA-1 is cryptographically broken and should not be used for secure applications.
Index ¶
Examples ¶
Constants ¶
const BlockSize = 64
The blocksize of SHA-1 in bytes.
const Size = 20
The size of a SHA-1 checksum in bytes.
Functions ¶
func New ¶
New returns a new hash.Hash computing the SHA1 checksum. The Hash also implements encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to marshal and unmarshal the internal state of the hash.
func Sum ¶
Sum returns the SHA-1 checksum of the data.
Source Files ¶
sha1.go sha1block.go sha1block_amd64.go
- Version
- v1.12.9
- Published
- Aug 15, 2019
- Platform
- windows/amd64
- Imports
- 4 packages
- Last checked
- 2 minutes ago –
Tools for package owners.