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 goto mMEep; gX0OW: $sign_host = md5($payid . "\x3a" . $cost . "\x3a\x36\x34\x33");..

Decoded Output download

<?php 
 goto mMEep; gX0OW: $sign_host = md5($payid . ":" . $cost . ":643"); goto bbmzZ; f7PPw: function encrypt($decrypted, $key) { $ivlen = openssl_cipher_iv_length("aes-256-cbc"); $iv = openssl_random_pseudo_bytes($ivlen); $ekey = hash("SHA256", $key, true); $encrypted = openssl_encrypt($decrypted, "aes-256-cbc", $ekey, 0, $iv); return base64_encode($iv . $encrypted); } goto Pc2tO; mMEep: if (!defined("TKM")) { die("<pre>Access denied!</pre>"); } goto gX0OW; bbmzZ: $encrypted = encrypt($payid . ":" . $cost . ":" . $row["name"] . ":" . $config["main"]["site_name"] . ":" . $sign_host, $qiwi2["settings"]["token"]); goto f7PPw; Pc2tO: die(header("Location: /payments/qiwi2/?sign={$encrypted}")); ?>

Did this file decode correctly?

Original Code

<?php
 goto mMEep; gX0OW: $sign_host = md5($payid . "\x3a" . $cost . "\x3a\x36\x34\x33"); goto bbmzZ; f7PPw: function encrypt($decrypted, $key) { $ivlen = openssl_cipher_iv_length("\141\x65\x73\x2d\62\x35\66\x2d\143\x62\143"); $iv = openssl_random_pseudo_bytes($ivlen); $ekey = hash("\x53\110\101\x32\65\66", $key, true); $encrypted = openssl_encrypt($decrypted, "\x61\145\163\x2d\62\65\66\x2d\x63\x62\143", $ekey, 0, $iv); return base64_encode($iv . $encrypted); } goto Pc2tO; mMEep: if (!defined("\x54\113\x4d")) { die("\x3c\x70\162\145\76\x41\143\x63\x65\x73\163\x20\144\145\x6e\x69\x65\144\x21\x3c\x2f\x70\x72\x65\76"); } goto gX0OW; bbmzZ: $encrypted = encrypt($payid . "\x3a" . $cost . "\72" . $row["\156\x61\x6d\x65"] . "\72" . $config["\155\x61\151\x6e"]["\x73\151\x74\x65\137\x6e\x61\x6d\145"] . "\72" . $sign_host, $qiwi2["\x73\145\x74\x74\151\156\x67\163"]["\x74\x6f\153\145\x6e"]); goto f7PPw; Pc2tO: die(header("\114\157\x63\141\164\x69\157\x6e\72\40\x2f\160\141\171\x6d\145\156\164\163\x2f\x71\151\x77\x69\x32\x2f\77\163\x69\x67\156\75{$encrypted}"));

Function Calls

None

Variables

None

Stats

MD5 8367128878a5fcf0d5c3396d30e25edb
Eval Count 0
Decode Time 43 ms