Documentation ¶
Index ¶
- func AesDecrypt(data, key string) (string, error)
- func AesEncrypt(data, key string) (string, error)
- func MD5(text string) string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func Sha1(text string) string
- func Sha256(text string) string
- func Sha512(text string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
AesDecrypt base64格式的aes加密字符串aes解密
func AesEncrypt ¶
AesEncrypt aes对字符串加密,返回base64编码的字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.