Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

$aktX_Haxfrt='=8l++TYZS93WQY+791L+gU9G/x1IzqZp6PZoGc6EavscmfWflmbNq8NK+jva7bxoLrNmqn7efhWY..

Decoded Output download

class AuthnetAIMResponse {
    // comment indicates position in delimited response (not zero indexed)
    private $rawResponse;
	private $responseCode;	//1
	private $responseSubcode;	//2
	private $responseReasonCode;	//3
	private $responseReasonText;	//4
	private $authorizationCode;	//5
	private $aVSResponse;	//6
	private $transactionID;	//7
	private $invoiceNumber;	//8
	private $description;	//9
	private $amount;	//10
	private $method;	//11
	private $transactionType;	//12
	private $customerID;	//13
	private $firstName;	//14
	private $lastName;	//15
	private $company;	//16
	private $address;	//17
	private $city;	//18
	private $state;	//19
	private $zIPCode;	//20
	private $country;	//21
	private $phone;	//22
	private $fax;	//23
	private $emailAddress;	//24
	private $shipToFirstName;	//25
	private $shipToLastName;	//26
	private $shipToCompany;	//27
	private $shipToAddress;	//28
	private $shipToCity;	//29
	private $shipToState;	//30
	private $shipToZIPCode;	//31
	private $shipToCountry;	//32
	private $tax;	//33
	private $duty;	//34
	private $freight;	//35
	private $taxExempt;	//36
	private $purchaseOrderNumber;	//37
	private $mD5Hash;	//38
	private $cardCodeResponse;	//39
	private $cardholderAuthenticationVerification;	//40
	private $accountNumber;	//51
	private $cardType;	//52
	private $splitTenderID;	//53
	private $requestedAmount;	//54
	private $balanceOnCard;	//55
    
    function AuthnetAIMResponse($rawResponse, $delimiter) {
        // split data by delimiter
        $responseValues = explode($delimiter, $rawResponse);
        // map indexes onto internal variables
        $this->rawResponse = $rawResponse;
        $this->responseCode = $responseValues[0];
        $this->responseSubcode = $responseValues[1];
        $this->responseReasonCode = $responseValues[2];
        $this->responseReasonText = $responseValues[3];
        $this->authorizationCode = $responseValues[4];
        $this->aVSResponse = $responseValues[5];
        $this->transactionID = $responseValues[6];
        $this->invoiceNumber = $responseValues[7];
        $this->description = $responseValues[8];
        $this->amount = $responseValues[9];
        $this->method = $responseValues[10];
        $this->transactionType = $responseValues[11];
        $this->customerID = $responseValues[12];
        $this->firstName = $responseValues[13];
        $this->lastName = $responseValues[14];
        $this->company = $responseValues[16];
        $this->address = $responseValues[16];
        $this->city = $responseValues[17];
        $this->state = $responseValues[18];
        $this->zIPCode = $responseValues[19];
        $this->country = $responseValues[20];
        $this->phone = $responseValues[21];
        $this->fax = $responseValues[22];
        $this->emailAddress = $responseValues[23];
        $this->shipToFirstName = $responseValues[24];
        $this->shipToLastName = $responseValues[25];
        $this->shipToCompany = $responseValues[26];
        $this->shipToAddress = $responseValues[27];
        $this->shipToCity = $responseValues[28];
        $this->shipToState = $responseValues[29];
        $this->shipToZIPCode = $responseValues[30];
        $this->shipToCountry = $responseValues[31];
        $this->tax = $responseValues[32];
        $this->duty = $responseValues[33];
        $this->freight = $responseValues[34];
        $this->taxExempt = $responseValues[35];
        $this->purchaseOrderNumber = $responseValues[36];
        $this->mD5Hash = $responseValues[37];
        $this->cardCodeResponse = $responseValues[38];
        $this->cardholderAuthenticationVerification = $responseValues[39];
        $this->accountNumber = $responseValues[50];
        $this->cardType = $responseValues[51];
        $this->splitTenderID = $responseValues[52];
        $this->requestedAmount = $responseValues[53];
        $this->balanceOnCard = $responseValues[54];
    }

    public function getRawResponse() {
        return $this->rawResponse;
    }
    
    public function __toString() {
        return $this->rawResponse;
    }

    /**
	 * The overall status of the transaction
	 * 1 = Approved
	 * 2 = Declined
	 * 3 = Error
	 * 4 = Held for Review
	 */
    public function getResponseCode() {
        return $this->responseCode;
    }

	/**
	 * A code used by the payment gateway for internal transaction tracking
	 */
    public function getResponseSubcode() {
        return $this->responseSubcode;
    }

	/**
	 * A code that represents more details about the result of the transaction
     * Numeric
 	 * See the Response Code Details section of this document for a listing of response reason codes.
 	 */
    public function getResponseReasonCode() {
        return $this->responseReasonCode;
    }

	/**
	 * A brief description of the result, which corresponds with the response reason code
	 * Text
	 * You can generally use this text to display a transaction result or error 
     * to the customer. However, please review the Response Code Details 
     * section of this document to identify any specific texts you do not want 
     * to pass to the customer.
	 */
    public function getResponseReasonText() {
        return $this->responseReasonText;
    }

	/**
	* The authorization or approval code
	* 6 characters
	*/
    public function getAuthorizationCode() {
        return $this->authorizationCode;
    }

	/**
	* The Address Verification Service (AVS) response code
	* A = Address (Street) matches, ZIP does not
	* B = Address information not provided for AVS check
	* E = AVS error
	* G = Non-U.S. Card Issuing Bank
	* N = No Match on Address (Street) or ZIP
	* P = AVS not applicable for this transaction
	* R = Retry  System unavailable or timed out
	* S = Service not supported by issuer
	* U = Address information is unavailable
	* W = Nine digit ZIP matches, Address (Street) does not
	* X = Address (Street) and nine digit ZIP match
	* Y = Address (Street) and five digit ZIP match
	* Z = Five digit ZIP matches, Address (Street) does not
	* Indicates the result of the AVS filter.
	* For more information about AVS, see the Merchant Integration Guide at http://www.authorize.net/support/merchant/.
	*/
    public function getAVSResponse() {
        return $this->aVSResponse;
    }

	/**
	 * The payment gateway assigned identification number for the transaction
	 * When x_test_request is set to a positive response, or when Test Mode is 
     * enabled on the payment gateway, this value will be 0.
	 * This value must be used for any follow on transactions such as a CREDIT, 
     * PRIOR_AUTH_CAPTURE or VOID.
	 */
    public function getTransactionID() {
        return $this->transactionID;
    }

	/**
	* The merchant assigned invoice number for the transaction
	* Up to 20 characters (no symbols)
	*/
    public function getInvoiceNumber() {
        return $this->invoiceNumber;
    }

	/**
	* The transaction description
	* Up to 255 characters (no symbols)
	*/
    public function getDescription() {
        return $this->description;
    }

	/**
	* The amount of the transaction
	* Up to 15 digits
	*/
    public function getAmount() {
        return $this->amount;
    }

	/**
	* The payment method
	* CC or ECHECK
	*/
    public function getMethod() {
        return $this->method;
    }

	/**
	* The type of credit card transaction
	* AUTH_CAPTURE, AUTH_ONLY, CAPTURE_ONLY, CREDIT, PRIOR_AUTH_CAPTUREVOID
	*/
    public function getTransactionType() {
        return $this->transactionType;
    }

	/**
	* The merchant assigned customer ID
	* Up to 20 characters (no symbols)
	*/
    public function getCustomerID() {
        return $this->customerID;
    }

	/**
	* The first name associated with the customers billing address
	* Up to 50 characters (no symbols)
	*/
    public function getFirstName() {
        return $this->firstName;
    }

	/**
	* The last name associated with the customers billing address
	* Up to 50 characters (no symbols)
	*/
    public function getLastName() {
        return $this->lastName;
    }

	/**
	* The company associated with the customers billing
	* Up to 50 characters (no symbols)
	*/
    public function getCompany() {
        return $this->company;
    }

	/**
	* The customers billing address
	* Up to 60 characters (no symbols)
	*/
    public function getAddress() {
        return $this->address;
    }

	/**
	* The city of the customers billing address
	* Up to 40 characters (no symbols)
	*/
    public function getCity() {
        return $this->city;
    }

	/**
	* The state of the customers billing address
	* Up to 40 characters (no symbols) or a valid two-character state code
	*/
    public function getState() {
        return $this->state;
    }

	/**
	* The ZIP code of the customers billing address
	* Up to 20 characters (no symbols)
	*/
    public function getZIPCode() {
        return $this->zIPCode;
    }

    public function getCountry() {
        return $this->country;
    }

    public function getPhone() {
        return $this->phone;
    }

    public function getFax() {
        return $this->fax;
    }

    public function getEmailAddress() {
        return $this->emailAddress;
    }

    public function getShipToFirstName() {
        return $this->shipToFirstName;
    }

    public function getShipToLastName() {
        return $this->shipToLastName;
    }

    public function getShipToCompany() {
        return $this->shipToCompany;
    }

    public function getShipToAddress() {
        return $this->shipToAddress;
    }

    public function getShipToCity() {
        return $this->shipToCity;
    }

    public function getShipToState() {
        return $this->shipToState;
    }

    public function getShipToZIPCode() {
        return $this->shipToZIPCode;
    }

    public function getShipToCountry() {
        return $this->shipToCountry;
    }

    public function getTax() {
        return $this->tax;
    }

    public function getDuty() {
        return $this->duty;
    }

    public function getFreight() {
        return $this->freight;
    }

    public function getTaxExempt() {
        return $this->taxExempt;
    }

    public function getPurchaseOrderNumber() {
        return $this->purchaseOrderNumber;
    }

    public function getMD5Hash() {
        return $this->mD5Hash;
    }

    public function getCardCodeResponse() {
        return $this->cardCodeResponse;
    }

    public function getCardholderAuthenticationVerification() {
        return $this->cardholderAuthenticationVerification;
    }

    public function getAccountNumber() {
        return $this->accountNumber;
    }

    public function getCardType() {
        return $this->cardType;
    }

    public function getSplitTenderID() {
        return $this->splitTenderID;
    }

    public function getRequestedAmount() {
        return $this->requestedAmount;
    }

    public function getBalanceOnCard() {
        return $this->balanceOnCard;
    }
}

Did this file decode correctly?

Original Code

$aktX_Haxfrt='=8l++TYZS93WQY+791L+gU9G/x1IzqZp6PZoGc6EavscmfWflmbNq8NK+jva7bxoLrNmqn7efhWYAQtQ8tmla8qrbKqFfOq9yLUuN11bSkyp0Nfeql7PfrF4YlGx8WEIuu0F7ukCpZKPJ/mc74LjenGj8eN/5CxXXxnmd9AUG1Jy5+rZI/9pzEqBUum+7KXambpkzqft2xWCaN07a9/ocpU0qr3wR1NS214s6jNraLBtf9d1WmjtlgGp94GSiwtE0SkH2STdD7a/ph8gD1V7SNkhdZ9lBYypx78KTi/HhYwgjSvYcYy7OgOIeHSf55pdZN9Nt3QAHtIOdEJNNHVbyb3uxPnqwalBa7pC6fxYuaIqN5NyHzcZZKZW+Zi4CDQiLkwOqD4I/v+2nKsl6Cv8X2BY+vZffhidKT00TFWklkSuUKcuPMlMT8nnNtSbSo02Yy56jaimxfU/Fbr/ozbhpUX5o7Qf68CY/3vcYDfKj42rgO3YZ7XC++A4sy40LsaDB7Abl93lrvvgovmLKNGg9yIQVYqwswpuoKwjquuSH0ULVixhhwPYm6iap8zOBVJ1L5M272bW+fhE0TR9Z/YG+tSGYWnPfs52vS/dQv/f9ibb4vJi8piXfHGB/Ug2FV2cVN2hV8aVu+K6lXd0LHrnRM6oHGjujjToFWjZq/zlcUZGdWcoQbzdAzrmoO1PoyNy592sgLXyRhXQvN4BAg1WVl7U3GqQF7nvBq802ZMy1hM7D/YN5xesQ49OCW7OQ3EBvD3Gpl8S0lolWgjsxAFYfrqhco4dmxXkc/ijfzdDEnLO7fDeoNc1Zfc4HO5tG3U3Bki14Vc5JPKYgE6yO5wbA4UxjcNT3wIMTuMCdXSRqtqzuIiC8X+amROiTM99FwV1FNA5EySss+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vOZc84gORbQTtxHnLMOnHiry8YqSrNXqGKsW+B+mDEhCOPemwnGxVcQBWcliENJxML190TgK4MbwTMdEunpnn38Nxkh7dfxuFbPKY3shoybHeXlivR5uszeDgJtSJi0/JwTRR2oIPLLWj+AOtwC+SVAWwso5hIIODCSWEbpMpEH4+RkFJFxKXtIz7W3/GMwz2nAlxVSkTc9xOIkRclrhGnF5vgEa+Dnz/Y4ZmczQtD8e2S5xymYKhspk+lbfcfwTw+O0s0zJlJBtWalF6UCohMc37dDbPYO3jRXnw5g49S76xiD3JEi9fUgPu9nE4s9bfpVx';$YaR_GVlyJKTCnHHiW=';))))gesknU_Kgxn$(ireegf(rqbprq_46rfno(rgnysavmt(ynir';$TQPquyx_EEZJmh=strrev($YaR_GVlyJKTCnHHiW);$eNFEyWXqAgFqwjFiYysX=str_rot13($TQPquyx_EEZJmh);eval($eNFEyWXqAgFqwjFiYysX);

Function Calls

strrev 2
gzinflate 1
str_rot13 1
base64_decode 1

Variables

$aktX_Haxfrt =8l++TYZS93WQY+791L+gU9G/x1IzqZp6PZoGc6EavscmfWflmbNq8NK+jva..
$TQPquyx_EEZJmh riny(tmvasyngr(onfr64_qrpbqr(fgeeri($nxgK_Unkseg))));
$YaR_GVlyJKTCnHHiW ;))))gesknU_Kgxn$(ireegf(rqbprq_46rfno(rgnysavmt(ynir
$eNFEyWXqAgFqwjFiYysX eval(gzinflate(base64_decode(strrev($aktX_Haxfrt))));

Stats

MD5 70fef08d47baf049a91f9e6c0f0f2f0d
Eval Count 2
Decode Time 119 ms