hashx

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HmacMD5

func HmacMD5(key, data []byte) string

HmacMD5 computes the HMAC-MD5 of the data using the provided key.

func HmacSHA1

func HmacSHA1(key, data []byte) string

HmacSHA1 computes the HMAC-SHA1 of the data using the provided key.

func HmacSHA256

func HmacSHA256(key, data []byte) string

HmacSHA256 computes the HMAC-SHA256 of the data using the provided key.

func HmacSHA512

func HmacSHA512(key, data []byte) string

HmacSHA512 computes the HMAC-SHA512 of the data using the provided key.

func HmacSM3

func HmacSM3(key, data []byte) string

HmacSM3 computes the HMAC-SM3 (Chinese National Standard) of the data using the provided key.

func MD5

func MD5(data string) string

MD5 computes the MD5 hash of the input string and returns the hex-encoded result.

func MD5Bytes

func MD5Bytes(data []byte) string

MD5Bytes computes the MD5 hash of the input bytes and returns the hex-encoded result.

func SHA1

func SHA1(data string) string

SHA1 computes the SHA-1 hash of the input string and returns the hex-encoded result.

func SHA1Bytes

func SHA1Bytes(data []byte) string

SHA1Bytes computes the SHA-1 hash of the input bytes and returns the hex-encoded result.

func SHA256

func SHA256(data string) string

SHA256 computes the SHA-256 hash of the input string and returns the hex-encoded result.

func SHA256Bytes

func SHA256Bytes(data []byte) string

SHA256Bytes computes the SHA-256 hash of the input bytes and returns the hex-encoded result.

func SHA512

func SHA512(data string) string

SHA512 computes the SHA-512 hash of the input string and returns the hex-encoded result.

func SHA512Bytes

func SHA512Bytes(data []byte) string

SHA512Bytes computes the SHA-512 hash of the input bytes and returns the hex-encoded result.

func SM3

func SM3(data string) string

SM3 computes the SM3 hash (Chinese National Standard) of the input string and returns the hex-encoded result.

func SM3Bytes

func SM3Bytes(data []byte) string

SM3Bytes computes the SM3 hash (Chinese National Standard) of the input bytes and returns the hex-encoded result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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