Documentation ¶
Index ¶
- func Aes128Decrypt(crypted, key []byte, IV []byte) ([]byte, error)
- func Aes128Encrypt(origData, key []byte, IV []byte) ([]byte, error)
- func HttpResultJson(ctx *gin.Context, data interface{}) error
- func HttpResultJsonError(ctx *gin.Context, data error) error
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PswDecrypt(src string) string
- func PswEncrypt(src string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpResultJson ¶
data := `{"code":"0","data":"GMT+08:00","message":"请求成功","success":true,"title":"","version":"app_01"}`
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.