Versions in this module Expand all Collapse all v0 v0.2.33 Apr 25, 2024 Changes in this version + func AES128CBCDecrypt(src string, sKey string, ivParameter string) string + func AES128CBCEncrypt(src string, sKey string, ivParameter string) string + func Aes128Decrypt(crypted, key []byte, IV []byte) ([]byte, error) + func Aes128Encrypt(origData, key []byte, IV []byte) ([]byte, error) + func Base64Decode(str string) string + func Base64Encode(str string) string + func Base64RawDecode(str string) string + func Base64RawEncode(str string) string + func Base64StdDecode(str string) string + func Base64StdEncode(str string) string + func CalToken(redirectURL, partnerKey string) (result string) + func DesDecryptCBC(src, key string) string + func DesDecryptECB(src, key string) string + func DesEncryptCBC(src, key string) string + func DesEncryptECB(src, key string) string + func HMACSHA256(data []byte, key []byte) []byte + func Hmac(str string, key string) string + func HmacHex(str string, key string) string + func HmacSHA1(str string, key string) string + func Md5(str string) string + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5UnPadding(origData []byte) []byte + func Rsa2(origData string, block []byte) (sign string) + func RsaDecrypt(data string, privateKey string) string + func RsaDecryptByte(ciphertext []byte, privateKey string) ([]byte, error) + func RsaEncrypt(data string, publicKey string) string + func RsaEncryptByte(data []byte, publicKey string) ([]byte, error) + func Sha1(str string) string + func Sha1Byte(str string) []byte + func Sha256(str string) string + func Sha256Byte(str string) []byte + func Sha512(str string) string + func Sha512Byte(str string) []byte