__construct() __construct(string $appId, string $token, string $AESKey) Constructor. Parameters string $appId string $token string $AESKey
encryptMsg() encryptMsg(string $xml, string $nonce = null, integer $timestamp = null) : string Encrypt the message and return XML. Parameters string $xml string $nonce integer $timestamp Returns string
decryptMsg() decryptMsg(string $msgSignature, string $nonce, string $timestamp, string $postXML) : array Decrypt message. Parameters string $msgSignature string $nonce string $timestamp string $postXML Throws \EasyWeChat\Encryption\EncryptionException Returns array
getSHA1() getSHA1() : string Get SHA1. Throws \EasyWeChat\Encryption\EncryptionException Returns string
decode() decode(string $decrypted) : string Decode string. Parameters string $decrypted Returns string
decryptData() decryptData(string $sessionKey, string $iv, string $encrypted) : array Decrypt data. Parameters string $sessionKey string $iv string $encrypted Returns array
getAESKey() getAESKey() : string Return AESKey. Throws \EasyWeChat\Core\Exceptions\InvalidConfigException Returns string
encrypt() encrypt(string $text, string $appId) : string Encrypt string. Parameters string $text string $appId Throws \EasyWeChat\Encryption\EncryptionException Returns string
decrypt() decrypt(string $encrypted, string $appId) : string Decrypt message. Parameters string $encrypted string $appId Throws \EasyWeChat\Encryption\EncryptionException Returns string