hash

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(data []byte) uint64

func Md5

func Md5(data []byte) []byte

Md5 对传入的字节数据进行哈希计算,并返回一个 16 字节的 MD5 哈希值

func Md5Hex

func Md5Hex(data []byte) string

Md5Hex 无论输入多长的数据,最后返回的字符串长度固定为 32 个字符。

Types

This section is empty.

Jump to

Keyboard shortcuts

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