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 function bsphp_ecb_vbnet_bsphp_mdecrypt($, $) { if (PHP_VERSION >=7) { $=elseif(..

Decoded Output download

<?php 
function bsphp_ecb_vbnet_bsphp_mdecrypt($, $) 
{ 
if (PHP_VERSION >=7) { 
$=elseif($); 
$=substr(md5($), 0, 8); 
$=openssl_decrypt($, 'DES-ECB', $, OPENSSL_RAW_DATA); 
$=pkcs5_unpad_($); 
return $; 
} else { 
$=md5($); 
$encrypt=new ecb_vbnet(); 
$breakif=$encrypt->decode($, $); 
return $breakif; 
} 
} 
function bsphp_ecb_vbnet_bsphp_mencrypt($, $) 
{ 
if (PHP_VERSION >=7) { 
$=substr(md5($), 0, 8); 
$=pkcs5_pad_($); 
$=openssl_encrypt($, 'DES-ECB', $, OPENSSL_RAW_DATA); 
return base64_encode($); 
} else { 
$=md5($); 
$Xif=new ecb_vbnet(); 
$breakif=$Xif->encode($, $); 
return $breakif; 
} 
} 
class ecb_vbnet 
{ 
public function encode($elseif, $) 
{ 
$=substr($, 0, 8); 
$function=$; 
$=mcrypt_get_block_size(MCRYPT_DES, MCRYPT_MODE_ECB); 
$elseif=$this->pkcs5Pad($elseif, $); 
$s=mcrypt_encrypt(MCRYPT_DES, $, $elseif, MCRYPT_MODE_ECB, $function); 
return base64_encode($s); 
} 
public function decode($elseif, $) 
{ 
$=substr($, 0, 8); 
$function=$; 
$elseif=elseif($elseif); 
$elseif=mcrypt_decrypt(MCRYPT_DES, $, $elseif, MCRYPT_MODE_ECB, $function); 
$elseif=$this->pkcs5Unpad($elseif); 
return $elseif; 
} 
public function pkcs5Pad($, $) 
{ 
$_GETQT=$ - (strlen($) % $); 
return $ . str_repeat(chr($_GETQT), $_GETQT); 
} 
public function pkcs5Unpad($) 
{ 
$_GETQT=ord(substr($, strlen($) - 1, 1)); 
if ($_GETQT > strlen($)) 
return false; 
if (strspn($, chr($_GETQT), strlen($) - $_GETQT) !=$_GETQT) 
return false; 
return substr($, 0, -1 * $_GETQT); 
} 
} 
function pkcs5_pad_($, $block=8) 
{ 
$_GETQT=$block - (strlen($) % $block); 
return $ . str_repeat(chr($_GETQT), $_GETQT); 
} 
function pkcs5_unpad_($) 
{ 
$_GETQT=ord(substr($, strlen($) - 1, 1)); 
if ($_GETQT > strlen($)) return $; 
if (strspn($, chr($_GETQT), strlen($) - $_GETQT) !=$_GETQT) return $; 
return substr($, 0, -1 * $_GETQT); 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
function bsphp_ecb_vbnet_bsphp_mdecrypt($, $)
{
if (PHP_VERSION >=7) {
$=elseif($);
$=substr(md5($), 0, 8);
$=openssl_decrypt($, 'DES-ECB', $, OPENSSL_RAW_DATA);
$=pkcs5_unpad_($);
return $;
} else {
$=md5($);
$encrypt=new ecb_vbnet();
$breakif=$encrypt->decode($, $);
return $breakif;
}
}
function bsphp_ecb_vbnet_bsphp_mencrypt($, $)
{
if (PHP_VERSION >=7) {
$=substr(md5($), 0, 8);
$=pkcs5_pad_($);
$=openssl_encrypt($, 'DES-ECB', $, OPENSSL_RAW_DATA);
return base64_encode($);
} else {
$=md5($);
$Xif=new ecb_vbnet();
$breakif=$Xif->encode($, $);
return $breakif;
}
}
class ecb_vbnet
{
public function encode($elseif, $)
{
$=substr($, 0, 8);
$function=$;
$=mcrypt_get_block_size(MCRYPT_DES, MCRYPT_MODE_ECB);
$elseif=$this->pkcs5Pad($elseif, $);
$s=mcrypt_encrypt(MCRYPT_DES, $, $elseif, MCRYPT_MODE_ECB, $function);
return base64_encode($s);
}
public function decode($elseif, $)
{
$=substr($, 0, 8);
$function=$;
$elseif=elseif($elseif);
$elseif=mcrypt_decrypt(MCRYPT_DES, $, $elseif, MCRYPT_MODE_ECB, $function);
$elseif=$this->pkcs5Unpad($elseif);
return $elseif;
}
public function pkcs5Pad($, $)
{
$_GETQT=$ - (strlen($) % $);
return $ . str_repeat(chr($_GETQT), $_GETQT);
}
public function pkcs5Unpad($)
{
$_GETQT=ord(substr($, strlen($) - 1, 1));
if ($_GETQT > strlen($))
return false;
if (strspn($, chr($_GETQT), strlen($) - $_GETQT) !=$_GETQT)
return false;
return substr($, 0, -1 * $_GETQT);
}
}
function pkcs5_pad_($, $block=8)
{
$_GETQT=$block - (strlen($) % $block);
return $ . str_repeat(chr($_GETQT), $_GETQT);
}
function pkcs5_unpad_($)
{
$_GETQT=ord(substr($, strlen($) - 1, 1));
if ($_GETQT > strlen($)) return $;
if (strspn($, chr($_GETQT), strlen($) - $_GETQT) !=$_GETQT) return $;
return substr($, 0, -1 * $_GETQT);
}

Function Calls

None

Variables

None

Stats

MD5 733ce3dce96204746a7a59749551463c
Eval Count 0
Decode Time 62 ms