Documentation
¶
Index ¶
- func AesCbcDecrypt(ciphertext []byte, key []byte) ([]byte, error)
- func Base64Decode(str string) string
- func Base64Encode(str string) string
- func Decrypt(ciphertext, key []byte) ([]byte, error)
- func EncodeMD5(value string) string
- func EncodeMD5AsEmpty() string
- func EncodeMD5Byte(value string) []byte
- func EncodeMD5Upper(value string) string
- func Encrypt(plaintext, key []byte) ([]byte, error)
- func GetMd5Sign(id, key, sign string, timeStamp int64) string
- func PKCS7Padding(data []byte, blockSize int) []byte
- func PKCS7UnPadding(data []byte) ([]byte, error)
- func Sha1Encode(data string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCbcDecrypt ¶ added in v1.26.0
AesCbcDecrypt 执行AES的CBC模式解密操作
func Base64Decode ¶
func Base64Encode ¶
func EncodeMD5Upper ¶
EncodeMD5Upper md5 encryption all upper
func GetMd5Sign ¶
func PKCS7UnPadding ¶
PKCS7UnPadding 实现PKCS#7的去填充操作
func Sha1Encode ¶ added in v1.25.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.