__construct() __construct(string $appId, string|null $token = null, string|null $aesKey = null) Constructor. Parameters string $appId string|null $token string|null $aesKey
encrypt() encrypt(string $xml, string $nonce = null, integer $timestamp = null) : string Encrypt the message and return XML. Parameters string $xml string $nonce integer $timestamp Throws \EasyWeChat\Kernel\Exceptions\RuntimeException Returns string
decrypt() decrypt(string $content, string $msgSignature, string $nonce, string $timestamp) : string Decrypt message. Parameters string $content string $msgSignature string $nonce string $timestamp Throws \EasyWeChat\Kernel\Exceptions\RuntimeException Returns string
pkcs7Pad() pkcs7Pad(string $text, integer $blockSize) : string PKCS#7 pad. Parameters string $text integer $blockSize Throws \EasyWeChat\Kernel\Exceptions\RuntimeException Returns string
decryptData() decryptData(string $sessionKey, string $iv, string $encrypted) : array Decrypt data. Parameters string $sessionKey string $iv string $encrypted Returns array