Versions in this module Expand all Collapse all v0 v0.0.0 Jul 28, 2023 Changes in this version + func Aes128Decrypt(crypted, key []byte, IV []byte) ([]byte, error) + func Aes128Encrypt(origData, key []byte, IV []byte) ([]byte, error) + func AesDecrypt(crypted, key []byte) ([]byte, error) + func AesEncrypt(origData, key []byte) ([]byte, error) + func CheckSign(secret string, param interface{}, excludeField ...string) bool + func GetNumCaptcha() (*captcha.Image, string) + func Md5(enstr string) string + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5UnPadding(origData []byte) []byte + func PKCS7Padding(ciphertext []byte, blockSize int) []byte + func PKCS7UnPadding(origData []byte) []byte + func RsaDecrypt(ciphertext []byte) ([]byte, error) + func RsaDecryptToText(base64Str string) string + func RsaEncrypt(origData []byte) ([]byte, error) + func RsaEncryptToBase64String(text string) string + func Sign(secret string, param interface{}, excludeField ...string) string + func Validate(passcode string, secret string) bool + type BindInfo struct + BindKey string + QrCode string + Url string + func GenerateBindInfo(account string, issuer string) *BindInfo