|
||
---|---|---|
.. | ||
README.md | ||
base64.go | ||
crc.go | ||
md5.go | ||
sha1.go | ||
sha256.go |
README.md
Crypto
暂无介绍...
目录导航
列出了该 package
下所有的函数及类型定义,可通过目录导航进行快捷跳转 ❤️
展开 / 折叠目录导航
包级函数定义
函数名称 | 描述 |
---|---|
EncryptBase64 | 对数据进行Base64编码 |
DecodedBase64 | 对数据进行Base64解码 |
EncryptCRC32 | 对字符串进行CRC加密并返回其结果。 |
DecodedCRC32 | 对字节数组进行CRC加密并返回其结果。 |
EncryptMD5 | 对字符串进行MD5加密并返回其结果。 |
DecodedMD5 | 对字节数组进行MD5加密并返回其结果。 |
EncryptSHA1 | 对字符串进行SHA1加密并返回其结果。 |
DecodedSHA1 | 对字节数组进行SHA1加密并返回其结果。 |
EncryptSHA256 | 对字符串进行SHA256加密并返回其结果。 |
DecodedSHA256 | 对字节数组进行SHA256加密并返回其结果。 |
详情信息
func EncryptBase64(data []byte) string
对数据进行Base64编码
func DecodedBase64(data string) ([]byte, error)
对数据进行Base64解码
func EncryptCRC32(str string) uint32
对字符串进行CRC加密并返回其结果。
func DecodedCRC32(data []byte) uint32
对字节数组进行CRC加密并返回其结果。
func EncryptMD5(str string) string
对字符串进行MD5加密并返回其结果。
func DecodedMD5(data []byte) string
对字节数组进行MD5加密并返回其结果。
func EncryptSHA1(str string) string
对字符串进行SHA1加密并返回其结果。
func DecodedSHA1(data []byte) string
对字节数组进行SHA1加密并返回其结果。
func EncryptSHA256(str string) string
对字符串进行SHA256加密并返回其结果。
func DecodedSHA256(data []byte) string
对字节数组进行SHA256加密并返回其结果。