crypto/sha3

Guided tour · Crypto · pkg.go.dev →

Keccak-based hashes: SHA3-256, SHA3-512, SHAKE128, SHAKE256. Different construction than SHA-2.

Usage

Sum256

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