process

package module
v0.0.0-...-5939244 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

process

share some usually used function

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteAesECBDecrypt

func ByteAesECBDecrypt(dataMSG, key []byte) ([]byte, error)

@title ByteAesECBDecrypt @description []Byte Aes ECB PKCS7 Decrypt @auth CyBen (2020-06-06 11:37:10) @param dataMSG,key []byte @return retData,error []byte,error

func ByteGbkToUtf8

func ByteGbkToUtf8(gbkByte []byte) ([]byte, error)

@title ByteGbkToUtf8 @description Gbk Transform To Utf8 @auth CyBen (2020-06-06 11:14:10) @param gbkByte []byte @return utf8Byte,error []byte,error

func ByteUtf8ToGbk

func ByteUtf8ToGbk(utf8byte []byte) ([]byte, error)

@title ByteUtf8ToGbk @description Utf8 Transform To Gbk @auth CyBen (2020-06-06 11:10:35) @param utf8Byte []byte @return gbkByte,error []byte,error

func CheckRealPhone

func CheckRealPhone(phonenumber string) bool

@CheckRealPhone @description check phoneNumber true/false @Author CyBen @param phoneNumber string @return true/false bool

func HttpJsonDo

func HttpJsonDo(httpMethod, url string, jsonMarshal []byte) ([]byte, error)

@title HttpJsonDo @description Http Send Json @auth CyBen (2020-06-06 11:50:46) @param httpMethod,url,jsonMarshal string,string,[]byte @return response,error []byte, error

func StringAesECBPKCS7Encrypted

func StringAesECBPKCS7Encrypted(keyMSG, origDataMSG string) string

@title StringAesECBPKCS7Encrypted @description Aes ECB PKCS7 Encrypted @auth CyBen (2020-06-06 11:33:29) @param keyMSG, origDataMSG string @return encryptedMSG string

Types

This section is empty.

Jump to

Keyboard shortcuts

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