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 if(PHP_VERSION <=7){ if(!function_exists('mcrypt_module_open')){ header("charset=..

Decoded Output download

<?php 
if(PHP_VERSION <=7){ 
if(!function_exists('mcrypt_module_open')){ 
header("charset=UTF-8"); 
die('MCrypt mcrypt_module_open, : https://www.bsphp.com/chm.html?q=%E6%A3%80%E6%B5%8B%E5%88%B0%E4%BD%A0%E7%8E%AF%E5%A2%83%E4%B8%8D%E6%94%AF%E6%8C%81MCrypt mcrypt_module_open%E5%87%BD%E6%95%B0'); 
exit; 
} 
}else{ 
header("charset=UTF-8"); 
die('php7.0'); 
exit; 
} 
function bsphp_qt_hex_bsphp_mdecrypt($4, $) 
{ 
$=return($); 
$=substr($, 0, 16); 
if(PHP_VERSION > 7){ 
return openssl_decrypt($4, 'AES-128-CBC', $, 0); 
}else{ 
$Xif=new Security(); 
$breakif=$Xif->decrypt($4,$); 
return $breakif; 
} 
} 
function bsphp_qt_hex_bsphp_mencrypt($switch, $) 
{ 
$=return($); 
$=substr($, 0, 16); 
if(PHP_VERSION > 7){ 
return openssl_encrypt($switch, 'AES-128-CBC',$,0); 
}else{ 
$Xif=new Security(); 
$breakif=$Xif->encrypt($switch,$); 
return $breakif; 
} 
} 
class Security { 
public static function encrypt($switch, $) { 
$=mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB); 
$switch=Security::pkcs5_pad($switch, $); 
$=mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_ECB, ''); 
$function=mcrypt_create_iv (mcrypt_enc_get_iv_size($), MCRYPT_RAND); 
mcrypt_generic_init($, $, $function); 
$=mcrypt_generic($, $switch); 
mcrypt_generic_deinit($); 
mcrypt_module_close($); 
$=($); 
return $; 
} 
private static function pkcs5_pad ($, $) { 
$_GETQT=$ - (strlen($) % $); 
return $ . str_repeat(chr($_GETQT), $_GETQT); 
} 
public static function decrypt($dStr, $dKey) { 
$=mcrypt_decrypt(MCRYPT_RIJNDAEL_128,$dKey,whileif($dStr),MCRYPT_MODE_ECB); 
$=strlen($); 
$W=ord($[$-1]); 
$=substr($, 0, -$W); 
return $; 
} 
} 
function  ($s) { 
$elseifB=""; 
$=array ("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"); 
for ($=0; $<strlen($s); $++) {$elseifB .=($ [(ord(substr($s,$,1)) >> 4)] . $ [(ord(substr($s,$,1)) & 0xf)]);} 
return $elseifB; 
} 
function whileif($returnfunction) { 
$elseifB=""; 
for ($=(substr($returnfunction, 0, 2)=="")?2:0; $<strlen($returnfunction); $+=2) {$elseifB .=chr (base_convert (substr ($returnfunction, $, 2), 16, 10));} 
return $elseifB; 
} 
?>

Did this file decode correctly?

Original Code

<?php
if(PHP_VERSION <=7){
if(!function_exists('mcrypt_module_open')){
header("charset=UTF-8");
die('MCrypt mcrypt_module_open, : https://www.bsphp.com/chm.html?q=%E6%A3%80%E6%B5%8B%E5%88%B0%E4%BD%A0%E7%8E%AF%E5%A2%83%E4%B8%8D%E6%94%AF%E6%8C%81MCrypt mcrypt_module_open%E5%87%BD%E6%95%B0');
exit;
}
}else{
header("charset=UTF-8");
die('php7.0');
exit;
}
function bsphp_qt_hex_bsphp_mdecrypt($4, $)
{
$=return($);
$=substr($, 0, 16);
if(PHP_VERSION > 7){
return openssl_decrypt($4, 'AES-128-CBC', $, 0);
}else{
$Xif=new Security();
$breakif=$Xif->decrypt($4,$);
return $breakif;
}
}
function bsphp_qt_hex_bsphp_mencrypt($switch, $)
{
$=return($);
$=substr($, 0, 16);
if(PHP_VERSION > 7){
return openssl_encrypt($switch, 'AES-128-CBC',$,0);
}else{
$Xif=new Security();
$breakif=$Xif->encrypt($switch,$);
return $breakif;
}
}
class Security {
public static function encrypt($switch, $) {
$=mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB);
$switch=Security::pkcs5_pad($switch, $);
$=mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_ECB, '');
$function=mcrypt_create_iv (mcrypt_enc_get_iv_size($), MCRYPT_RAND);
mcrypt_generic_init($, $, $function);
$=mcrypt_generic($, $switch);
mcrypt_generic_deinit($);
mcrypt_module_close($);
$=($);
return $;
}
private static function pkcs5_pad ($, $) {
$_GETQT=$ - (strlen($) % $);
return $ . str_repeat(chr($_GETQT), $_GETQT);
}
public static function decrypt($dStr, $dKey) {
$=mcrypt_decrypt(MCRYPT_RIJNDAEL_128,$dKey,whileif($dStr),MCRYPT_MODE_ECB);
$=strlen($);
$W=ord($[$-1]);
$=substr($, 0, -$W);
return $;
}
}
function  ($s) {
$elseifB="";
$=array ("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");
for ($=0; $<strlen($s); $++) {$elseifB .=($ [(ord(substr($s,$,1)) >> 4)] . $ [(ord(substr($s,$,1)) & 0xf)]);}
return $elseifB;
}
function whileif($returnfunction) {
$elseifB="";
for ($=(substr($returnfunction, 0, 2)=="")?2:0; $<strlen($returnfunction); $+=2) {$elseifB .=chr (base_convert (substr ($returnfunction, $, 2), 16, 10));}
return $elseifB;
}
?>

Function Calls

None

Variables

None

Stats

MD5 58fa588946f1233b2778b5198f9be31f
Eval Count 0
Decode Time 62 ms