Documentation ¶ Index ¶ func Base64Decode(str string) (string, error) func Base64Encode(str string) string func Crc32(str string) uint32 func HmacSHA1(s string, secret string) string func HmacSHA256(message string, secret string) string func MD5(str string) string func SHA1(str string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Base64Decode ¶ func Base64Decode(str string) (string, error) Base64Decode base64解码 func Base64Encode ¶ func Base64Encode(str string) string Base64Encode base64编码 func Crc32 ¶ func Crc32(str string) uint32 Crc32 crc32加密 func HmacSHA1 ¶ func HmacSHA1(s string, secret string) string HmacSHA1 生成十六进制字符串 func HmacSHA256 ¶ func HmacSHA256(message string, secret string) string HmacSHA256 生成十六进制字符串 func MD5 ¶ func MD5(str string) string MD5 生成十六进制字符串 func SHA1 ¶ func SHA1(str string) string SHA1 生成十六进制字符串 Types ¶ This section is empty. Source Files ¶ View all Source files base64.go hash.go Click to show internal directories. Click to hide internal directories.