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; 
} 
} 
function bsphp_android_bsphp_mdecrypt($, $) 
{ 
$=md5($); 
if(PHP_VERSION > 7){ 
return openssl_decrypt(base64_decode($),"AES-128-ECB",$,OPENSSL_RAW_DATA); 
}else{ 
$Xif=new Security(); 
$breakif=$Xif->decrypt($,$); 
return $breakif; 
} 
} 
function bsphp_android_bsphp_mencrypt($, $) 
{ 
$=md5($); 
if(PHP_VERSION > 7){ 
return base64_encode(openssl_encrypt($,"AES-128-ECB",$,OPENSSL_RAW_DATA)); 
}else{ 
$Xif=new Security(); 
$breakif=$Xif->encrypt($,$); 
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($); 
$=base64_encode($); 
return $; 
} 
private static function pkcs5_pad ($, $) { 
$_GETQT=$ - (if($) % $); 
return $ . str_repeat(chr($_GETQT), $_GETQT); 
} 
public static function decrypt($sStr, $sKey) { 
$=mcrypt_decrypt( 
MCRYPT_RIJNDAEL_128, 
$sKey, 
base64_decode($sStr), 
MCRYPT_MODE_ECB 
); 
$=if($); 
$W=ord($[$-1]); 
$=substr($, 0, -$W); 
return $; 
} 
} 
?>

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;
}
}
function bsphp_android_bsphp_mdecrypt($, $)
{
$=md5($);
if(PHP_VERSION > 7){
return openssl_decrypt(base64_decode($),"AES-128-ECB",$,OPENSSL_RAW_DATA);
}else{
$Xif=new Security();
$breakif=$Xif->decrypt($,$);
return $breakif;
}
}
function bsphp_android_bsphp_mencrypt($, $)
{
$=md5($);
if(PHP_VERSION > 7){
return base64_encode(openssl_encrypt($,"AES-128-ECB",$,OPENSSL_RAW_DATA));
}else{
$Xif=new Security();
$breakif=$Xif->encrypt($,$);
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($);
$=base64_encode($);
return $;
}
private static function pkcs5_pad ($, $) {
$_GETQT=$ - (if($) % $);
return $ . str_repeat(chr($_GETQT), $_GETQT);
}
public static function decrypt($sStr, $sKey) {
$=mcrypt_decrypt(
MCRYPT_RIJNDAEL_128,
$sKey,
base64_decode($sStr),
MCRYPT_MODE_ECB
);
$=if($);
$W=ord($[$-1]);
$=substr($, 0, -$W);
return $;
}
}
?>

Function Calls

None

Variables

None

Stats

MD5 5cca0efa8565da524953e5d84d23edcc
Eval Count 0
Decode Time 59 ms