common

package
v0.0.0-...-3a6d849 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aes128Decrypt

func Aes128Decrypt(crypted, key []byte, IV []byte) ([]byte, error)

func Aes128Encrypt

func Aes128Encrypt(origData, key []byte, IV []byte) ([]byte, error)

func HttpResultJson

func HttpResultJson(ctx *gin.Context, data interface{}) error

data := `{"code":"0","data":"GMT+08:00","message":"请求成功","success":true,"title":"","version":"app_01"}`

func HttpResultJsonError

func HttpResultJsonError(ctx *gin.Context, data error) error

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

func PswDecrypt

func PswDecrypt(src string) string

解密

func PswEncrypt

func PswEncrypt(src string) string

加密

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL