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 namespace MiniOrange\OAuth\Helper\OAuth; use MiniOrange\OAuth\Helper\OAuthCo..
Decoded Output download
<?php
namespace MiniOrange\OAuth\Helper\OAuth;
use MiniOrange\OAuth\Helper\OAuthConstants;
class AuthorizationRequest
{
private $clientID;
private $scope;
private $authorizeURL;
private $responseType;
private $redirectURL;
private $state;
private $pkce;
private $code_challenge;
public function __construct($hc, $a0, $iI, $qS, $Jy, $Vs, $FU = false, $nO = false)
{
$this->clientID = $hc;
$this->scope = $a0;
$this->state = $Vs;
$this->authorizeURL = $iI;
$this->responseType = $qS;
$this->redirectURL = $Jy;
$this->pkce = $FU;
$this->code_challenge = $nO;
}
private function generateRequest()
{
$oo = '';
if (strpos($this->authorizeURL, "?") !== false) {
goto kG;
}
$oo .= "?";
kG:
$oo .= "client_id=" . $this->clientID . "&scope=" . urlencode($this->scope) . "&state=" . urlencode($this->state) . "&redirect_uri=" . urlencode($this->redirectURL) . "&response_type=" . $this->responseType;
if (!$this->pkce) {
goto D6;
}
$oo .= "&code_challenge=" . $this->code_challenge . "&code_challenge_method=S256";
D6:
return $oo;
}
public function build()
{
$oo = $this->generateRequest();
return $oo;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace MiniOrange\OAuth\Helper\OAuth;
use MiniOrange\OAuth\Helper\OAuthConstants;
class AuthorizationRequest
{
private $clientID;
private $scope;
private $authorizeURL;
private $responseType;
private $redirectURL;
private $state;
private $pkce;
private $code_challenge;
public function __construct($hc, $a0, $iI, $qS, $Jy, $Vs, $FU = false, $nO = false)
{
$this->clientID = $hc;
$this->scope = $a0;
$this->state = $Vs;
$this->authorizeURL = $iI;
$this->responseType = $qS;
$this->redirectURL = $Jy;
$this->pkce = $FU;
$this->code_challenge = $nO;
}
private function generateRequest()
{
$oo = '';
if (strpos($this->authorizeURL, "\77") !== false) {
goto kG;
}
$oo .= "\77";
kG:
$oo .= "\x63\154\151\x65\156\164\x5f\151\144\x3d" . $this->clientID . "\x26\163\143\x6f\x70\x65\x3d" . urlencode($this->scope) . "\x26\163\x74\x61\164\x65\75" . urlencode($this->state) . "\x26\x72\x65\144\151\162\x65\143\164\x5f\x75\x72\x69\x3d" . urlencode($this->redirectURL) . "\46\162\145\163\x70\157\x6e\x73\x65\137\164\x79\160\x65\x3d" . $this->responseType;
if (!$this->pkce) {
goto D6;
}
$oo .= "\46\x63\157\x64\x65\x5f\x63\150\x61\154\x6c\145\156\147\x65\75" . $this->code_challenge . "\46\x63\x6f\x64\145\x5f\143\x68\x61\x6c\x6c\x65\156\147\145\137\155\145\x74\x68\x6f\144\75\123\62\65\x36";
D6:
return $oo;
}
public function build()
{
$oo = $this->generateRequest();
return $oo;
}
}
Function Calls
None |
Stats
MD5 | 13abd2945132f312537059e2f8294dd4 |
Eval Count | 0 |
Decode Time | 34 ms |