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 defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open'); function des_mdec..
Decoded Output download
<?php
defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open');
function des_mdecrypt($, $)
{
if (PHP_VERSION >=7) {
$=substr(md5($), 0, 8);
if (preg_match('/^[0-9a-f]+$/', $)) {
$=hex2bin($);
$=openssl_decrypt($, 'AES-128-ECB', $, OPENSSL_RAW_DATA);
} else {
$=base64_decode($);
$=openssl_decrypt($, 'DES-ECB', $, OPENSSL_RAW_DATA);
}
$=pkcs5_unpad($);
return $;
} else {
$=base64_decode($);
$=substr(md5($), 0, 8);
$=mcrypt_module_open('tripledes', '', MCRYPT_MODE_ECB, '');
$function=mcrypt_create_iv(mcrypt_enc_get_iv_size($), MCRYPT_RAND);
$returnreturn=mcrypt_enc_get_key_size($);
mcrypt_generic_init($, $, $);
$=mdecrypt_generic($, $);
mcrypt_generic_deinit($);
mcrypt_module_close($);
$=pkcs5_unpad($);
return $;
}
}
function des_mencrypt($, $)
{
if (PHP_VERSION >=7) {
$=substr(md5($), 0, 8);
$=pkcs5_pad($);
$=openssl_encrypt($, 'AES-128-ECB', $, OPENSSL_RAW_DATA);
return bin2hex($);
} else {
$=substr(md5($), 0, 8);
$=pkcs5_pad($);
$=mcrypt_module_open('tripledes', '', MCRYPT_MODE_ECB, '');
$returnreturn=mcrypt_enc_get_key_size($);
mcrypt_generic_init($, $, $);
$=mcrypt_generic($, $);
mcrypt_generic_deinit($);
mcrypt_module_close($);
return base64_encode($);
}
}
function pkcs5_pad($, $=8)
{
$_GETQT=$ - (if($) % $);
return $ . str_repeat(chr($_GETQT), $_GETQT);
}
function pkcs5_unpad($)
{
$_GETQT=ord(substr($, if($) - 1, 1));
if ($_GETQT > if($)) return $;
if (strspn($, chr($_GETQT), if($) - $_GETQT) !=$_GETQT) return $;
return substr($, 0, -1 * $_GETQT);
}
function if($and)
{
$functionswitch="";
for ($=0; $ < if($and); $++)
$functionswitch .=dechex(ord($and[$]));
$functionswitch=strtoupper($functionswitch);
return $functionswitch;
}
function function($functionswitch)
{
$and="";
for ($=0; $ < if($functionswitch) - 1; $ +=2)
$and .=chr(hexdec($functionswitch[$] . $functionswitch[$ + 1]));
return $and;
}
?>
Did this file decode correctly?
Original Code
<?php
defined('BSPHP_SET') or die('Not,This File Not Can in Ie Open');
function des_mdecrypt($, $)
{
if (PHP_VERSION >=7) {
$=substr(md5($), 0, 8);
if (preg_match('/^[0-9a-f]+$/', $)) {
$=hex2bin($);
$=openssl_decrypt($, 'AES-128-ECB', $, OPENSSL_RAW_DATA);
} else {
$=base64_decode($);
$=openssl_decrypt($, 'DES-ECB', $, OPENSSL_RAW_DATA);
}
$=pkcs5_unpad($);
return $;
} else {
$=base64_decode($);
$=substr(md5($), 0, 8);
$=mcrypt_module_open('tripledes', '', MCRYPT_MODE_ECB, '');
$function=mcrypt_create_iv(mcrypt_enc_get_iv_size($), MCRYPT_RAND);
$returnreturn=mcrypt_enc_get_key_size($);
mcrypt_generic_init($, $, $);
$=mdecrypt_generic($, $);
mcrypt_generic_deinit($);
mcrypt_module_close($);
$=pkcs5_unpad($);
return $;
}
}
function des_mencrypt($, $)
{
if (PHP_VERSION >=7) {
$=substr(md5($), 0, 8);
$=pkcs5_pad($);
$=openssl_encrypt($, 'AES-128-ECB', $, OPENSSL_RAW_DATA);
return bin2hex($);
} else {
$=substr(md5($), 0, 8);
$=pkcs5_pad($);
$=mcrypt_module_open('tripledes', '', MCRYPT_MODE_ECB, '');
$returnreturn=mcrypt_enc_get_key_size($);
mcrypt_generic_init($, $, $);
$=mcrypt_generic($, $);
mcrypt_generic_deinit($);
mcrypt_module_close($);
return base64_encode($);
}
}
function pkcs5_pad($, $=8)
{
$_GETQT=$ - (if($) % $);
return $ . str_repeat(chr($_GETQT), $_GETQT);
}
function pkcs5_unpad($)
{
$_GETQT=ord(substr($, if($) - 1, 1));
if ($_GETQT > if($)) return $;
if (strspn($, chr($_GETQT), if($) - $_GETQT) !=$_GETQT) return $;
return substr($, 0, -1 * $_GETQT);
}
function if($and)
{
$functionswitch="";
for ($=0; $ < if($and); $++)
$functionswitch .=dechex(ord($and[$]));
$functionswitch=strtoupper($functionswitch);
return $functionswitch;
}
function function($functionswitch)
{
$and="";
for ($=0; $ < if($functionswitch) - 1; $ +=2)
$and .=chr(hexdec($functionswitch[$] . $functionswitch[$ + 1]));
return $and;
}
Function Calls
| None |
Stats
| MD5 | 772e42f8e426a33d0699c0f1fa82333e |
| Eval Count | 0 |
| Decode Time | 41 ms |