Documentation ¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.