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 include "\x41\x73\x73\145\x72\x74\151\x6f\156\56\x70\x68\x70"; class SAML2_Res..
Decoded Output download
<?php
include "Assertion.php";
class SAML2_Response
{
private $assertions;
private $destination;
private $certificates;
private $signatureData;
public function __construct(DOMElement $Zu = NULL)
{
$this->assertions = array();
$this->certificates = array();
if (!($Zu === NULL)) {
goto cG;
}
return;
cG:
$Cm = Utilities::validateElement($Zu);
if (!($Cm !== FALSE)) {
goto tq;
}
$this->certificates = $Cm["Certificates"];
$this->signatureData = $Cm;
tq:
if (!$Zu->hasAttribute("Destination")) {
goto dQ;
}
$this->destination = $Zu->getAttribute("Destination");
dQ:
$Js = $Zu->firstChild;
k4:
if (!($Js !== NULL)) {
goto U0;
}
if (!($Js->namespaceURI !== "urn:oasis:names:tc:SAML:2.0:assertion")) {
goto RA;
}
goto WE;
RA:
if (!($Js->localName === "Assertion" || $Js->localName === "EncryptedAssertion")) {
goto YY;
}
$this->assertions[] = new SAML2_Assertion($Js);
YY:
WE:
$Js = $Js->nextSibling;
goto k4;
U0:
}
public function getAssertions()
{
return $this->assertions;
}
public function setAssertions(array $fE)
{
$this->assertions = $fE;
}
public function getDestination()
{
return $this->destination;
}
public function toUnsignedXML()
{
$ai = parent::toUnsignedXML();
foreach ($this->assertions as $Qh) {
$Qh->toXML($ai);
ts:
}
Av:
return $ai;
}
public function getCertificates()
{
return $this->certificates;
}
public function getSignatureData()
{
return $this->signatureData;
}
}
?>
Did this file decode correctly?
Original Code
<?php
include "\x41\x73\x73\145\x72\x74\151\x6f\156\56\x70\x68\x70";
class SAML2_Response
{
private $assertions;
private $destination;
private $certificates;
private $signatureData;
public function __construct(DOMElement $Zu = NULL)
{
$this->assertions = array();
$this->certificates = array();
if (!($Zu === NULL)) {
goto cG;
}
return;
cG:
$Cm = Utilities::validateElement($Zu);
if (!($Cm !== FALSE)) {
goto tq;
}
$this->certificates = $Cm["\x43\145\162\x74\x69\146\151\x63\141\164\x65\163"];
$this->signatureData = $Cm;
tq:
if (!$Zu->hasAttribute("\104\x65\163\x74\151\x6e\x61\x74\x69\157\156")) {
goto dQ;
}
$this->destination = $Zu->getAttribute("\x44\x65\163\x74\151\156\x61\x74\x69\x6f\156");
dQ:
$Js = $Zu->firstChild;
k4:
if (!($Js !== NULL)) {
goto U0;
}
if (!($Js->namespaceURI !== "\165\x72\x6e\x3a\157\141\163\x69\163\x3a\x6e\x61\x6d\145\163\72\x74\x63\72\x53\x41\115\x4c\x3a\62\x2e\x30\72\x61\163\x73\145\x72\164\x69\157\156")) {
goto RA;
}
goto WE;
RA:
if (!($Js->localName === "\x41\163\x73\x65\x72\x74\151\x6f\156" || $Js->localName === "\x45\x6e\x63\x72\171\160\164\x65\x64\101\x73\163\x65\162\164\151\157\156")) {
goto YY;
}
$this->assertions[] = new SAML2_Assertion($Js);
YY:
WE:
$Js = $Js->nextSibling;
goto k4;
U0:
}
public function getAssertions()
{
return $this->assertions;
}
public function setAssertions(array $fE)
{
$this->assertions = $fE;
}
public function getDestination()
{
return $this->destination;
}
public function toUnsignedXML()
{
$ai = parent::toUnsignedXML();
foreach ($this->assertions as $Qh) {
$Qh->toXML($ai);
ts:
}
Av:
return $ai;
}
public function getCertificates()
{
return $this->certificates;
}
public function getSignatureData()
{
return $this->signatureData;
}
}
Function Calls
| None |
Stats
| MD5 | 725db7ef1d6b6e42e68963b210de5695 |
| Eval Count | 0 |
| Decode Time | 80 ms |