Documentation ¶
Index ¶
- func DecryptEAPIResponse(resp []byte) []byte
- func EncryptEAPIRequestPayload(path string, input []byte) string
- func EncryptToString(input, key []byte) string
- func LinuxClientEncrypt(input []byte) string
- func PKCS7Padding(data []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func PrepareEAPIRequestBody(url string, input []byte, hash string) []byte
- func PrepareEAPIRequestHash(url string, input []byte) string
- type EAPIRequestPayload
- type WEAPICryptedPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptEAPIResponse ¶
func EncryptToString ¶
func LinuxClientEncrypt ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func PrepareEAPIRequestBody ¶
func PrepareEAPIRequestHash ¶
Types ¶
type EAPIRequestPayload ¶
func DecryptEAPIRequestBody ¶
func DecryptEAPIRequestBody(input []byte) (*EAPIRequestPayload, error)
type WEAPICryptedPayload ¶
type WEAPICryptedPayload struct { EncryptedText string `json:"params"` SecureKey string `json:"encSecKey"` }
func EncryptWEAPIPayload ¶
func EncryptWEAPIPayload(input []byte) (*WEAPICryptedPayload, error)
func EncryptWEAPIPayloadWithSecureKey ¶
func EncryptWEAPIPayloadWithSecureKey(input, secureKey []byte) (*WEAPICryptedPayload, error)
Click to show internal directories.
Click to hide internal directories.