Documentation ¶
Overview ¶
Package crypto 消息的加解密功能
Index ¶
- type Crypto
- func (c *Crypto) Decrypt(body []byte, sign, timestamp, nonce string) ([]byte, error)
- func (c *Crypto) DecryptObject(body []byte, sign, timestamp, nonce string, object interface{}) error
- func (c *Crypto) Encrypt(xmltext []byte, timestamp, nonce string) ([]byte, string, error)
- func (c *Crypto) EncryptObject(xmlobj interface{}, timestamp, nonce string) ([]byte, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypto ¶
type Crypto struct {
// contains filtered or unexported fields
}
Crypto 加解密功能
func (*Crypto) DecryptObject ¶
func (c *Crypto) DecryptObject(body []byte, sign, timestamp, nonce string, object interface{}) error
DecryptObject 解密 XML 内容
Click to show internal directories.
Click to hide internal directories.