Documentation
¶
Index ¶
- func HmacMD5(key, data []byte) string
- func HmacSHA1(key, data []byte) string
- func HmacSHA256(key, data []byte) string
- func HmacSHA512(key, data []byte) string
- func HmacSM3(key, data []byte) string
- func MD5(data string) string
- func MD5Bytes(data []byte) string
- func SHA1(data string) string
- func SHA1Bytes(data []byte) string
- func SHA256(data string) string
- func SHA256Bytes(data []byte) string
- func SHA512(data string) string
- func SHA512Bytes(data []byte) string
- func SM3(data string) string
- func SM3Bytes(data []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HmacSHA256 ¶
HmacSHA256 computes the HMAC-SHA256 of the data using the provided key.
func HmacSHA512 ¶
HmacSHA512 computes the HMAC-SHA512 of the data using the provided key.
func HmacSM3 ¶
HmacSM3 computes the HMAC-SM3 (Chinese National Standard) of the data using the provided key.
func MD5Bytes ¶
MD5Bytes computes the MD5 hash of the input bytes and returns the hex-encoded result.
func SHA1Bytes ¶
SHA1Bytes computes the SHA-1 hash of the input bytes and returns the hex-encoded result.
func SHA256 ¶
SHA256 computes the SHA-256 hash of the input string and returns the hex-encoded result.
func SHA256Bytes ¶
SHA256Bytes computes the SHA-256 hash of the input bytes and returns the hex-encoded result.
func SHA512 ¶
SHA512 computes the SHA-512 hash of the input string and returns the hex-encoded result.
func SHA512Bytes ¶
SHA512Bytes computes the SHA-512 hash of the input bytes and returns the hex-encoded result.
Types ¶
This section is empty.