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 "\101\163\163\145\162\x74\151\x6f\156\x2e\160\x68\160"; class SAML2_Re..

Decoded Output download

<?php 
 
 
include "Assertion.php"; 
class SAML2_Response 
{ 
    private $assertions; 
    private $destination; 
    private $certificates; 
    private $signatureData; 
    public function __construct(DOMElement $uu = NULL) 
    { 
        $this->assertions = array(); 
        $this->certificates = array(); 
        if (!($uu === NULL)) { 
            goto d1; 
        } 
        return; 
        d1: 
        $Vl = Utilities::validateElement($uu); 
        if (!($Vl !== FALSE)) { 
            goto QF; 
        } 
        $this->certificates = $Vl["Certificates"]; 
        $this->signatureData = $Vl; 
        QF: 
        if (!$uu->hasAttribute("Destination")) { 
            goto f1; 
        } 
        $this->destination = $uu->getAttribute("Destination"); 
        f1: 
        $io = $uu->firstChild; 
        H4: 
        if (!($io !== NULL)) { 
            goto DT; 
        } 
        if (!($io->namespaceURI !== "urn:oasis:names:tc:SAML:2.0:assertion")) { 
            goto rJ; 
        } 
        goto O0; 
        rJ: 
        if (!($io->localName === "Assertion" || $io->localName === "EncryptedAssertion")) { 
            goto Mf; 
        } 
        $this->assertions[] = new SAML2_Assertion($io); 
        Mf: 
        O0: 
        $io = $io->nextSibling; 
        goto H4; 
        DT: 
    } 
    public function getAssertions() 
    { 
        return $this->assertions; 
    } 
    public function setAssertions(array $z4) 
    { 
        $this->assertions = $z4; 
    } 
    public function getDestination() 
    { 
        return $this->destination; 
    } 
    public function toUnsignedXML() 
    { 
        $Ob = parent::toUnsignedXML(); 
        foreach ($this->assertions as $jV) { 
            $jV->toXML($Ob); 
            Ld: 
        } 
        hM: 
        return $Ob; 
    } 
    public function getCertificates() 
    { 
        return $this->certificates; 
    } 
    public function getSignatureData() 
    { 
        return $this->signatureData; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php


include "\101\163\163\145\162\x74\151\x6f\156\x2e\160\x68\160";
class SAML2_Response
{
    private $assertions;
    private $destination;
    private $certificates;
    private $signatureData;
    public function __construct(DOMElement $uu = NULL)
    {
        $this->assertions = array();
        $this->certificates = array();
        if (!($uu === NULL)) {
            goto d1;
        }
        return;
        d1:
        $Vl = Utilities::validateElement($uu);
        if (!($Vl !== FALSE)) {
            goto QF;
        }
        $this->certificates = $Vl["\x43\x65\162\x74\151\x66\151\143\141\164\x65\x73"];
        $this->signatureData = $Vl;
        QF:
        if (!$uu->hasAttribute("\x44\x65\163\164\x69\156\141\x74\151\157\x6e")) {
            goto f1;
        }
        $this->destination = $uu->getAttribute("\x44\x65\163\164\x69\156\x61\x74\x69\157\156");
        f1:
        $io = $uu->firstChild;
        H4:
        if (!($io !== NULL)) {
            goto DT;
        }
        if (!($io->namespaceURI !== "\165\x72\x6e\72\x6f\x61\163\151\x73\72\x6e\141\155\x65\x73\x3a\164\143\72\123\x41\115\114\72\62\56\x30\x3a\141\x73\163\x65\x72\164\x69\157\156")) {
            goto rJ;
        }
        goto O0;
        rJ:
        if (!($io->localName === "\x41\x73\x73\145\x72\164\x69\157\x6e" || $io->localName === "\105\x6e\143\162\171\x70\x74\x65\144\x41\163\x73\x65\162\x74\151\x6f\156")) {
            goto Mf;
        }
        $this->assertions[] = new SAML2_Assertion($io);
        Mf:
        O0:
        $io = $io->nextSibling;
        goto H4;
        DT:
    }
    public function getAssertions()
    {
        return $this->assertions;
    }
    public function setAssertions(array $z4)
    {
        $this->assertions = $z4;
    }
    public function getDestination()
    {
        return $this->destination;
    }
    public function toUnsignedXML()
    {
        $Ob = parent::toUnsignedXML();
        foreach ($this->assertions as $jV) {
            $jV->toXML($Ob);
            Ld:
        }
        hM:
        return $Ob;
    }
    public function getCertificates()
    {
        return $this->certificates;
    }
    public function getSignatureData()
    {
        return $this->signatureData;
    }
}

Function Calls

None

Variables

None

Stats

MD5 f7d2605e461e92cefe1da3325d437101
Eval Count 0
Decode Time 82 ms