util

package
v0.2.1-beta Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(crypted, key []byte) ([]byte, error)

func AesEncrypt

func AesEncrypt(origData, key []byte) ([]byte, error)

func FillBizResp

func FillBizResp(resp interface{}, status *constant.ErrorStatus)

func GetAesKeyFromString

func GetAesKeyFromString(str string) []byte

func GetInternalIP

func GetInternalIP() (ip string)

func GetJsonMap

func GetJsonMap(obj interface{}) map[string]interface{}

func GetJsonString

func GetJsonString(obj interface{}) string

func GetMd5String

func GetMd5String(b []byte) string

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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