Versions in this module Expand all Collapse all v1 v1.1.0 Aug 31, 2022 v1.0.6 Sep 1, 2022 v1.0.5 Aug 31, 2022 v1.0.4 Aug 15, 2022 Changes in this version + func AesECBDecrypt(crypted, key []byte) (origData []byte, err error) + func AesECBEncrypt(src, key []byte) (crypted []byte, err error) + func CheckSum(signInput []byte) uint32 + func DeCrypt(pv string, payload, localKey []byte) (decryptData []byte, err error) + func DeCrypt20(Payload []byte, localKey []byte) (decryptData []byte, err error) + func DeCrypt21(payload, localKey []byte) (decryptData []byte, err error) + func DeCrypt22(payload, localKey []byte) (decryptData []byte, err error) + func GcmDecrypt(ciphertext []byte, key []byte) (plaintext []byte, err error) + func GcmEncrypt(plaintext []byte, key []byte) (ciphertext []byte, err error) + func IntToBytes(n uint32) []byte + func MakeSign(signInput string, Start int, End int) (sign string) + func Md5(source string) (md5str string) + func NewECBDecrypter(b cipher.Block) cipher.BlockMode + func NewECBEncrypter(b cipher.Block) cipher.BlockMode + func PKCS5UnPadding(origData []byte) []byte + func ReverseSlice(s interface{}) + type GetDataFromAtopRequest struct + BizType int + DataType int + ErrMsg string + FailedData []int + GwId string + PageNo int + PageSize int + Result int + SecKey string + TaskId string + TransId string + type ProtocolVO struct + Data []byte + From uint32 + GwId string + Protocol int + Pv string + S uint32 + Sign string + T int64 + func NewProtocolVO22() ProtocolVO + func (pv *ProtocolVO) EnCrypt(data interface{}, localKey []byte) (decryptData []byte, err error) + func (pv *ProtocolVO) EnCrypt20(data interface{}, localKey []byte) (encryptData []byte, err error) + func (pv *ProtocolVO) EnCrypt21(data interface{}, localKey []byte) (encryptData []byte, err error) + func (pv *ProtocolVO) EnCrypt22(data interface{}, localKey []byte, seq uint32, from uint32) (encryptData []byte, err error) + type StrategiesOrJobSendResp struct + ErrorCode string + Result struct{ ... } + Success bool + T int64 v1.0.3 Dec 29, 2021 v1.0.1 Jan 21, 2020 v1.0.0 Jan 6, 2020 Changes in this version + func AESDecryptByECB(text, key string) string + func AESEncryptByECB(text, key string) string + func EcbDecrypt(data, key []byte) []byte + func EcbEncrypt(data, key []byte) []byte + func Get16BitMD5(noSign string) string + func HmacSha256(message string, secret string) string + func MD5(noSign string) string + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5Unpadding(origData []byte) []byte + func Sha256Sign(noSign string) string