hash

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MD5

func MD5(data []byte) string

MD5 encodes md5 hash by bytes data

func MD5Data

func MD5Data(v interface{}) string

MD5Data encode ms5 hash for value's json bytes

func MD5Map

func MD5Map(m ...interface{}) string

MD5Map encode ms5 hash for value's json bytes

func MD5Mid

func MD5Mid(data []byte) string

MD5Mid encodes md5 hash 16 chars

func MD5MidString

func MD5MidString(data string) string

MD5MidString encodes md5 hash 16 chars

func MD5String

func MD5String(data string) string

MD5String encodes md5 hash by string data

func Sm3Data

func Sm3Data(v interface{}) string

func Sm3Hash

func Sm3Hash(data []byte) string

Sm3Hash encodes sm3 hash by bytes data

func Sm3String

func Sm3String(data string) string

Sm3String encodes md5 hash by string data

func Sm3Sum

func Sm3Sum(data []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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