Documentation ¶
Overview ¶
Package hashutil provides utility functions for hashing data.
Functions in this package accept an interface{} argument, which must be one of the following:
- Any type implementing io.Reader
- string or *string
- []byte
Anything else will panic at runtime.
Index ¶
- func Adler32(src interface{}) string
- func CRC32(src interface{}) string
- func CRC64ECMA(src interface{}) string
- func CRC64ISO(src interface{}) string
- func Fnv32(src interface{}) string
- func Fnv32a(src interface{}) string
- func Fnv64(src interface{}) string
- func Fnv64a(src interface{}) string
- func Md5(src interface{}) string
- func Sha1(src interface{}) string
- func Sha224(src interface{}) string
- func Sha256(src interface{}) string
- func Sha512(src interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CRC32 ¶
func CRC32(src interface{}) string
CRC32 returns the CRC-32 hash as a string, using the IEEE polynomial.
func CRC64ECMA ¶
func CRC64ECMA(src interface{}) string
CRC64ECMA returns the CRC-64 hash as a string, using the ECMA polynomial.
func CRC64ISO ¶
func CRC64ISO(src interface{}) string
CRC64ISO returns the CRC-64 hash as a string, using the ISO polynomial.
func Fnv32a ¶
func Fnv32a(src interface{}) string
Fnv32a returns the fnv-1a 32 bits hash as a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.