hashing

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5Bytes

func Md5Bytes(bytes []byte) [sdkmd5.Size]byte

Md5Bytes 对字节做Md5

func Md5FileHex

func Md5FileHex(absFilePath string) (string, error)

Md5FileHex 计算文件md5返回Hex

func Md5Hex

func Md5Hex(data string) string

Md5Hex Md5字符串返回HexString

func Sha256Base64

func Sha256Base64(data string) string

Sha256Base64 返回Base64结果

func Sha256Bytes

func Sha256Bytes(data []byte) []byte

Sha256Bytes 对 byte 数组执行 hash256 运算

func Sha256Hex

func Sha256Hex(data string) string

Sha256Hex 返回Hex结果

Types

This section is empty.

Jump to

Keyboard shortcuts

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