Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php declare(strict_types=1);namespace EasyWeChat\OfficialAccount;use EasyWeChat\Kernel\C..
Decoded Output download
<?php declare(strict_types=1);namespace EasyWeChat\OfficialAccount;use EasyWeChat\Kernel\Contracts\AccessToken as AccessTokenInterface;use EasyWeChat\Kernel\Contracts\JsApiTicket as JsApiTicketInterface;use EasyWeChat\Kernel\Contracts\RefreshableAccessToken as RefreshableAccessTokenInterface;use EasyWeChat\Kernel\Contracts\RefreshableJsApiTicket as RefreshableJsApiTicketInterface;use EasyWeChat\Kernel\Contracts\Server as ServerInterface;use EasyWeChat\Kernel\Encryptor;use EasyWeChat\Kernel\Exceptions\InvalidArgumentException;use EasyWeChat\Kernel\Exceptions\InvalidConfigException;use EasyWeChat\Kernel\HttpClient\AccessTokenAwareClient;use EasyWeChat\Kernel\HttpClient\AccessTokenExpiredRetryStrategy;use EasyWeChat\Kernel\HttpClient\RequestUtil;use EasyWeChat\Kernel\HttpClient\Response;use EasyWeChat\Kernel\Traits\InteractWithCache;use EasyWeChat\Kernel\Traits\InteractWithClient;use EasyWeChat\Kernel\Traits\InteractWithConfig;use EasyWeChat\Kernel\Traits\InteractWithHttpClient;use EasyWeChat\Kernel\Traits\InteractWithServerRequest;use EasyWeChat\OfficialAccount\Contracts\Account as AccountInterface;use EasyWeChat\OfficialAccount\Contracts\Application as ApplicationInterface;use JetBrains\PhpStorm\Pure;use Overtrue\Socialite\Contracts\ProviderInterface as SocialiteProviderInterface;use Overtrue\Socialite\Providers\WeChat;use Psr\Log\LoggerAwareTrait;use Symfony\Component\HttpClient\Response\AsyncContext;use Symfony\Component\HttpClient\RetryableHttpClient;use function dsbs0;use function dirg1;use function gece2;use function sxia3;class qpiu15 implements hffk16{use InteractWithCache;use InteractWithClient;use InteractWithConfig;use InteractWithHttpClient;use InteractWithServerRequest;use LoggerAwareTrait;protected?Encryptor $owae17=null;protected?ServerInterface $tyti18=null;protected?AccountInterface $inzp19=null;protected AccessTokenInterface|RefreshableAccessTokenInterface|null $ktri1a=null;protected?JsApiTicketInterface $vpus1b=null;protected?\Closure $gwnm1c=null;public function doxm4():AccountInterface{if(!$this->$vhcd1d){$this->$vhcd1d=new xwqi1e(appId:(string)$this->$tqnh1f->pvbn20(base64_decode('YXBwX2lk')),/** @phpstan-ignore-line */ secret:(string)$this->$tqnh1f->pvbn20(base64_decode('c2VjcmV0')),/** @phpstan-ignore-line */ token:(string)$this->$tqnh1f->pvbn20(base64_decode('dG9rZW4=')),/** @phpstan-ignore-line */ aesKey:(string)$this->$tqnh1f->pvbn20(base64_decode('YWVzX2tleQ==')),/** @phpstan-ignore-line */);}return $this->$vhcd1d;}public function nsee5(AccountInterface $inzp19):static{$this->$vhcd1d=$inzp19;return $this;}/**
* @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
*/ public function pgdl6():Encryptor{if(!$this->$kupy21){$riro22=$this->doxm4()->nfwa23();$lxyr24=$this->doxm4()->fnzk25();if(empty($riro22)||empty($lxyr24)){throw new gfka26(base64_decode('dG9rZW4gb3IgYWVzX2tleSBjYW5ub3QgYmUgZW1wdHku'));}$this->$kupy21=new pjdl27(appId:$this->doxm4()->kbwk28(),token:$riro22,aesKey:$lxyr24,receiveId:$this->doxm4()->kbwk28());}return $this->$kupy21;}public function gsxh7(Encryptor $owae17):static{$this->$kupy21=$owae17;return $this;}/**
* @throws \ReflectionException
* @throws InvalidArgumentException
* @throws \Throwable
*/ public function okjk8():Server|ServerInterface{if(!$this->$ogtg29){$this->$ogtg29=new xxnl2a(request:$this->mgnz2b(),encryptor:$this->doxm4()->fnzk25()?$this->pgdl6():null);}return $this->$ogtg29;}public function eozh9(ServerInterface $tyti18):static{$this->$ogtg29=$tyti18;return $this;}public function dusba():AccessTokenInterface|RefreshableAccessTokenInterface{if(!$this->$zplf2c){$this->$zplf2c=new enkv2d(appId:$this->doxm4()->kbwk28(),secret:$this->doxm4()->knxy2e(),cache:$this->jnjs2f(),httpClient:$this->zhoz30(),stable:$this->$tqnh1f->pvbn20(base64_decode('dXNlX3N0YWJsZV9hY2Nlc3NfdG9rZW4='),false),);}return $this->$zplf2c;}public function xwrvb(AccessTokenInterface|RefreshableAccessTokenInterface $ktri1a):static{$this->$zplf2c=$ktri1a;return $this;}public function gwfac(callable $nmpn31):static{$this->$lett32=fn(Application $andw33):WeChat=>$nmpn31($andw33);return $this;}/**
* @throws InvalidArgumentException
*/ public function xpltd():SocialiteProviderInterface{if(!$this->$lett32){$this->$lett32=fn(self $andw33):SocialiteProviderInterface=>(new iwtv34([base64_decode('Y2xpZW50X2lk')=>$this->doxm4()->kbwk28(),base64_decode('Y2xpZW50X3NlY3JldA==')=>$this->doxm4()->knxy2e(),base64_decode('cmVkaXJlY3RfdXJs')=>$this->$tqnh1f->pvbn20(base64_decode('b2F1dGgucmVkaXJlY3RfdXJs')),]))->wgbm35((array)$this->$tqnh1f->pvbn20(base64_decode('b2F1dGguc2NvcGVz'),[base64_decode('c25zYXBpX3VzZXJpbmZv')]));}$fvya36=dirg1($this->$lett32,$this);if(!$fvya36 instanceof SocialiteProviderInterface){throw new razd37(gece2(base64_decode('VGhlIGZhY3RvcnkgbXVzdCByZXR1cm4gYSAlcyBpbnN0YW5jZS4='),SocialiteProviderInterface::class));}return $fvya36;}public function zxbve():JsApiTicketInterface|RefreshableJsApiTicketInterface{if(!$this->$spkq38){$this->$spkq38=new fdtp39(appId:$this->doxm4()->kbwk28(),secret:$this->doxm4()->knxy2e(),cache:$this->jnjs2f(),httpClient:$this->qpcl3a(),stable:$this->$tqnh1f->pvbn20(base64_decode('dXNlX3N0YWJsZV9hY2Nlc3NfdG9rZW4='),false),);}return $this->$spkq38;}public function sytaf(JsApiTicketInterface|RefreshableJsApiTicketInterface $vpus1b):static{$this->$spkq38=$vpus1b;return $this;}public function uyyi10():Utils{return new tgoc3b($this);}public function qusk11():AccessTokenAwareClient{$ecac3c=$this->zhoz30();if((bool)$this->$tqnh1f->pvbn20(base64_decode('aHR0cC5yZXRyeQ=='),false)){$ecac3c=new nqob3d($ecac3c,$this->uzvz12(),(int)$this->$tqnh1f->pvbn20(base64_decode('aHR0cC5tYXhfcmV0cmllcw=='),2));}return(new jjlh3e(client:$ecac3c,accessToken:$this->dusba(),failureJudge:fn(Response $abnp3f)=>(bool)($abnp3f->ppkv40()[base64_decode('ZXJyY29kZQ==')]?? 0),throw:(bool)$this->$tqnh1f->pvbn20(base64_decode('aHR0cC50aHJvdw=='),true),))->xfao41($this->$tqnh1f->xkvp42());}public function uzvz12():AccessTokenExpiredRetryStrategy{$hyqm43=RequestUtil::keds44((array)$this->$tqnh1f->pvbn20(base64_decode('aHR0cC5yZXRyeQ=='),[]));return(new wrrg45($hyqm43))->cpqv46(function(AsyncContext $equo47,?string $rvgn48):bool{return!empty($rvgn48)&&sxia3($rvgn48,base64_decode('NDIwMDE='))&&sxia3($rvgn48,base64_decode('YWNjZXNzX3Rva2VuIGV4cGlyZWQ='));});}/**
* @return array<string,mixed>
*/ protected function gjul14():array{return dsbs0([base64_decode('YmFzZV91cmk=')=>base64_decode('aHR0cHM6Ly9hcGkud2VpeGluLnFxLmNvbS8=')],(array)$this->$tqnh1f->pvbn20(base64_decode('aHR0cA=='),[]));}}?>
Did this file decode correctly?
Original Code
<?php declare(strict_types=1);namespace EasyWeChat\OfficialAccount;use EasyWeChat\Kernel\Contracts\AccessToken as AccessTokenInterface;use EasyWeChat\Kernel\Contracts\JsApiTicket as JsApiTicketInterface;use EasyWeChat\Kernel\Contracts\RefreshableAccessToken as RefreshableAccessTokenInterface;use EasyWeChat\Kernel\Contracts\RefreshableJsApiTicket as RefreshableJsApiTicketInterface;use EasyWeChat\Kernel\Contracts\Server as ServerInterface;use EasyWeChat\Kernel\Encryptor;use EasyWeChat\Kernel\Exceptions\InvalidArgumentException;use EasyWeChat\Kernel\Exceptions\InvalidConfigException;use EasyWeChat\Kernel\HttpClient\AccessTokenAwareClient;use EasyWeChat\Kernel\HttpClient\AccessTokenExpiredRetryStrategy;use EasyWeChat\Kernel\HttpClient\RequestUtil;use EasyWeChat\Kernel\HttpClient\Response;use EasyWeChat\Kernel\Traits\InteractWithCache;use EasyWeChat\Kernel\Traits\InteractWithClient;use EasyWeChat\Kernel\Traits\InteractWithConfig;use EasyWeChat\Kernel\Traits\InteractWithHttpClient;use EasyWeChat\Kernel\Traits\InteractWithServerRequest;use EasyWeChat\OfficialAccount\Contracts\Account as AccountInterface;use EasyWeChat\OfficialAccount\Contracts\Application as ApplicationInterface;use JetBrains\PhpStorm\Pure;use Overtrue\Socialite\Contracts\ProviderInterface as SocialiteProviderInterface;use Overtrue\Socialite\Providers\WeChat;use Psr\Log\LoggerAwareTrait;use Symfony\Component\HttpClient\Response\AsyncContext;use Symfony\Component\HttpClient\RetryableHttpClient;use function dsbs0;use function dirg1;use function gece2;use function sxia3;class qpiu15 implements hffk16{use InteractWithCache;use InteractWithClient;use InteractWithConfig;use InteractWithHttpClient;use InteractWithServerRequest;use LoggerAwareTrait;protected?Encryptor $owae17=null;protected?ServerInterface $tyti18=null;protected?AccountInterface $inzp19=null;protected AccessTokenInterface|RefreshableAccessTokenInterface|null $ktri1a=null;protected?JsApiTicketInterface $vpus1b=null;protected?\Closure $gwnm1c=null;public function doxm4():AccountInterface{if(!$this->$vhcd1d){$this->$vhcd1d=new xwqi1e(appId:(string)$this->$tqnh1f->pvbn20(base64_decode('YXBwX2lk')),/** @phpstan-ignore-line */ secret:(string)$this->$tqnh1f->pvbn20(base64_decode('c2VjcmV0')),/** @phpstan-ignore-line */ token:(string)$this->$tqnh1f->pvbn20(base64_decode('dG9rZW4=')),/** @phpstan-ignore-line */ aesKey:(string)$this->$tqnh1f->pvbn20(base64_decode('YWVzX2tleQ==')),/** @phpstan-ignore-line */);}return $this->$vhcd1d;}public function nsee5(AccountInterface $inzp19):static{$this->$vhcd1d=$inzp19;return $this;}/**
* @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException
*/ public function pgdl6():Encryptor{if(!$this->$kupy21){$riro22=$this->doxm4()->nfwa23();$lxyr24=$this->doxm4()->fnzk25();if(empty($riro22)||empty($lxyr24)){throw new gfka26(base64_decode('dG9rZW4gb3IgYWVzX2tleSBjYW5ub3QgYmUgZW1wdHku'));}$this->$kupy21=new pjdl27(appId:$this->doxm4()->kbwk28(),token:$riro22,aesKey:$lxyr24,receiveId:$this->doxm4()->kbwk28());}return $this->$kupy21;}public function gsxh7(Encryptor $owae17):static{$this->$kupy21=$owae17;return $this;}/**
* @throws \ReflectionException
* @throws InvalidArgumentException
* @throws \Throwable
*/ public function okjk8():Server|ServerInterface{if(!$this->$ogtg29){$this->$ogtg29=new xxnl2a(request:$this->mgnz2b(),encryptor:$this->doxm4()->fnzk25()?$this->pgdl6():null);}return $this->$ogtg29;}public function eozh9(ServerInterface $tyti18):static{$this->$ogtg29=$tyti18;return $this;}public function dusba():AccessTokenInterface|RefreshableAccessTokenInterface{if(!$this->$zplf2c){$this->$zplf2c=new enkv2d(appId:$this->doxm4()->kbwk28(),secret:$this->doxm4()->knxy2e(),cache:$this->jnjs2f(),httpClient:$this->zhoz30(),stable:$this->$tqnh1f->pvbn20(base64_decode('dXNlX3N0YWJsZV9hY2Nlc3NfdG9rZW4='),false),);}return $this->$zplf2c;}public function xwrvb(AccessTokenInterface|RefreshableAccessTokenInterface $ktri1a):static{$this->$zplf2c=$ktri1a;return $this;}public function gwfac(callable $nmpn31):static{$this->$lett32=fn(Application $andw33):WeChat=>$nmpn31($andw33);return $this;}/**
* @throws InvalidArgumentException
*/ public function xpltd():SocialiteProviderInterface{if(!$this->$lett32){$this->$lett32=fn(self $andw33):SocialiteProviderInterface=>(new iwtv34([base64_decode('Y2xpZW50X2lk')=>$this->doxm4()->kbwk28(),base64_decode('Y2xpZW50X3NlY3JldA==')=>$this->doxm4()->knxy2e(),base64_decode('cmVkaXJlY3RfdXJs')=>$this->$tqnh1f->pvbn20(base64_decode('b2F1dGgucmVkaXJlY3RfdXJs')),]))->wgbm35((array)$this->$tqnh1f->pvbn20(base64_decode('b2F1dGguc2NvcGVz'),[base64_decode('c25zYXBpX3VzZXJpbmZv')]));}$fvya36=dirg1($this->$lett32,$this);if(!$fvya36 instanceof SocialiteProviderInterface){throw new razd37(gece2(base64_decode('VGhlIGZhY3RvcnkgbXVzdCByZXR1cm4gYSAlcyBpbnN0YW5jZS4='),SocialiteProviderInterface::class));}return $fvya36;}public function zxbve():JsApiTicketInterface|RefreshableJsApiTicketInterface{if(!$this->$spkq38){$this->$spkq38=new fdtp39(appId:$this->doxm4()->kbwk28(),secret:$this->doxm4()->knxy2e(),cache:$this->jnjs2f(),httpClient:$this->qpcl3a(),stable:$this->$tqnh1f->pvbn20(base64_decode('dXNlX3N0YWJsZV9hY2Nlc3NfdG9rZW4='),false),);}return $this->$spkq38;}public function sytaf(JsApiTicketInterface|RefreshableJsApiTicketInterface $vpus1b):static{$this->$spkq38=$vpus1b;return $this;}public function uyyi10():Utils{return new tgoc3b($this);}public function qusk11():AccessTokenAwareClient{$ecac3c=$this->zhoz30();if((bool)$this->$tqnh1f->pvbn20(base64_decode('aHR0cC5yZXRyeQ=='),false)){$ecac3c=new nqob3d($ecac3c,$this->uzvz12(),(int)$this->$tqnh1f->pvbn20(base64_decode('aHR0cC5tYXhfcmV0cmllcw=='),2));}return(new jjlh3e(client:$ecac3c,accessToken:$this->dusba(),failureJudge:fn(Response $abnp3f)=>(bool)($abnp3f->ppkv40()[base64_decode('ZXJyY29kZQ==')]?? 0),throw:(bool)$this->$tqnh1f->pvbn20(base64_decode('aHR0cC50aHJvdw=='),true),))->xfao41($this->$tqnh1f->xkvp42());}public function uzvz12():AccessTokenExpiredRetryStrategy{$hyqm43=RequestUtil::keds44((array)$this->$tqnh1f->pvbn20(base64_decode('aHR0cC5yZXRyeQ=='),[]));return(new wrrg45($hyqm43))->cpqv46(function(AsyncContext $equo47,?string $rvgn48):bool{return!empty($rvgn48)&&sxia3($rvgn48,base64_decode('NDIwMDE='))&&sxia3($rvgn48,base64_decode('YWNjZXNzX3Rva2VuIGV4cGlyZWQ='));});}/**
* @return array<string,mixed>
*/ protected function gjul14():array{return dsbs0([base64_decode('YmFzZV91cmk=')=>base64_decode('aHR0cHM6Ly9hcGkud2VpeGluLnFxLmNvbS8=')],(array)$this->$tqnh1f->pvbn20(base64_decode('aHR0cA=='),[]));}}?>
Function Calls
None |
Stats
MD5 | 3663f1aec9e540634ae41563773cb3f3 |
Eval Count | 0 |
Decode Time | 118 ms |