hash/crc64

Guided tour · Hashing · pkg.go.dev →

CRC-64 checksums. Same shape as crc32 with a 64-bit digest.

Usage

Checksum

t := crc64.MakeTable(crc64.ECMA)
sum := crc64.Checksum([]byte("hello"), t)
fmt.Printf("%016x\n", sum)