Documentation
¶
Index ¶
Constants ¶
View Source
const SaltLength = 32
SaltLength is the number of bytes which should be used as salt in hashing functions
Variables ¶
View Source
var ErrSaltLengthMismatch = fmt.Errorf("provided salt is not %d length", SaltLength)
ErrSaltLengthMismath is used when the provided salt does not match the expected SaltLength
Functions ¶
This section is empty.
Types ¶
type Hasher ¶
Hasher implements different non cryptographic hashing functions
func NewMetroHasher ¶
NewMetroHasher returns a metro hasher that uses salt as a prefix to the bytes being summed
func NewMurmur3Hasher ¶
NewMurmur3Hasher returns a Murmur3 hasher that uses salt as a prefix to the bytes being summed
Click to show internal directories.
Click to hide internal directories.