crypto/sha1

Guided tour · Crypto · pkg.go.dev →

SHA-1 hashing. BROKEN for security. Remains for Git-compatible hashing and legacy protocols.

Usage

Sum

sum := sha1.Sum([]byte("hello"))
fmt.Printf("%x\n", sum)