crypto

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptEAPIResponse

func DecryptEAPIResponse(resp []byte) []byte

func EncryptEAPIRequestPayload

func EncryptEAPIRequestPayload(path string, input []byte) string

func EncryptToString

func EncryptToString(input, key []byte) string

func LinuxClientEncrypt

func LinuxClientEncrypt(input []byte) string

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

func PrepareEAPIRequestBody

func PrepareEAPIRequestBody(url string, input []byte, hash string) []byte

func PrepareEAPIRequestHash

func PrepareEAPIRequestHash(url string, input []byte) string

Types

type EAPIRequestPayload

type EAPIRequestPayload struct {
	Path string
	Data string
}

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)

Jump to

Keyboard shortcuts

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