hash

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

哈希算法有BKDRHash,APHash,DJBHash,JSHash,RSHash,SDBMHash,PJWHash,ELFHash等等,这些都是比较经典的

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APHash

func APHash(b []byte) uint32

func APHash64

func APHash64(b []byte) uint64

func BKDRHash

func BKDRHash(b []byte) uint32

BKDR hash是一种字符哈希算法

func BKDRHash64

func BKDRHash64(b []byte) uint64

func DJBHash

func DJBHash(b []byte) uint32

func DJBHash64

func DJBHash64(b []byte) uint64

func ELFHash

func ELFHash(b []byte) uint32

func ELFHash64

func ELFHash64(b []byte) uint64

func JSHash

func JSHash(b []byte) uint32

JS Hash

func JSHash64

func JSHash64(b []byte) uint64

JS Hash

func PJWHash

func PJWHash(b []byte) uint32

P. J. Weinberger Hash

func PJWHash64

func PJWHash64(b []byte) uint64

P. J. Weinberger Hash

func RSHash

func RSHash(b []byte) uint32

func RSHash64

func RSHash64(b []byte) uint64

RS Hash

func SDBMHash

func SDBMHash(b []byte) uint32

SDBM Hash

func SDBMHash64

func SDBMHash64(b []byte) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL