xhash

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FNV32 added in v2.6.0

func FNV32(key string) uint32

FNV32 计算 FNV-32 哈希值

func FNV32a added in v2.6.0

func FNV32a(key string) uint32

FNV32a 计算 FNV-32a 哈希值

func FNV64 added in v2.6.0

func FNV64(key string) uint64

FNV64 计算 FNV-64 哈希值

func FNV64a added in v2.6.0

func FNV64a(key string) uint64

FNV64a 计算 FNV-64a 哈希值

func MD5

func MD5(str string) string

MD5 计算 MD5 哈希值

func SHA256

func SHA256(data string, key string) string

SHA256 计算 SHA-256 哈希值,key 非空时计算 HMAC-SHA256

Types

This section is empty.

Jump to

Keyboard shortcuts

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