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) {
$=base64_decode($);
$=substr(md5($), 0, 8);
$=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($, 'DES-ECB', $, OPENSSL_RAW_DATA);
return base64_encode($);
} 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) {
$=base64_decode($);
$=substr(md5($), 0, 8);
$=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($, 'DES-ECB', $, OPENSSL_RAW_DATA);
return base64_encode($);
} 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 | fa5120b990150c6d669b3b4d555074a1 |
Eval Count | 0 |
Decode Time | 90 ms |