hash

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5 added in v0.6.0

func Md5(data string) string

func Md5Bytes added in v0.6.0

func Md5Bytes(data []byte) string

func Md5Hmac added in v0.6.0

func Md5Hmac(key, data []byte) (string, error)

func Sha1 added in v0.6.0

func Sha1(data string) string

func Sha1Bytes added in v0.6.0

func Sha1Bytes(data []byte) string

func Sha1Hmac added in v0.6.0

func Sha1Hmac(key, data []byte) (string, error)

func Sha256 added in v0.6.0

func Sha256(data string) string

func Sha256Bytes added in v0.6.0

func Sha256Bytes(data []byte) string

func Sha256Hmac added in v0.6.0

func Sha256Hmac(key, data []byte) (string, error)

func Sha512 added in v0.6.0

func Sha512(data string) string

func Sha512Bytes added in v0.6.0

func Sha512Bytes(data []byte) string

func Sha512Hmac added in v0.6.0

func Sha512Hmac(key, data []byte) (string, error)

func Sm3 added in v0.6.0

func Sm3(data string) string

Sm3 uses Chinese National Standard cryptographic hash (国密算法).

func Sm3Bytes added in v0.6.0

func Sm3Bytes(data []byte) string

func Sm3Hmac added in v0.6.0

func Sm3Hmac(key, data []byte) (string, error)

Sm3Hmac uses Chinese National Standard cryptographic hash (国密算法).

Types

This section is empty.

Jump to

Keyboard shortcuts

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