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_des_bsphp_mdecrypt($, $) { if(PHP_VERSION>=7){ $=elseif($); $=su..
Decoded Output download
<?php
function bsphp_des_bsphp_mdecrypt($, $)
{
if(PHP_VERSION>=7){
$=elseif($);
$=substr(md5($), 0, 8);
$=openssl_decrypt($, 'DES-ECB', $, OPENSSL_RAW_DATA | OPENSSL_NO_PADDING);
$=pkcs5_unpad($);
return $;
}else{
$=elseif($);
$=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 bsphp_des_bsphp_mencrypt($, $)
{
if(PHP_VERSION>=7){
$=substr(md5($), 0, 8);
$=pkcs5_pad($);
$=openssl_encrypt($, 'DES-ECB', $, OPENSSL_RAW_DATA | OPENSSL_NO_PADDING);
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($);
}
}
?>
Did this file decode correctly?
Original Code
<?php
function bsphp_des_bsphp_mdecrypt($, $)
{
if(PHP_VERSION>=7){
$=elseif($);
$=substr(md5($), 0, 8);
$=openssl_decrypt($, 'DES-ECB', $, OPENSSL_RAW_DATA | OPENSSL_NO_PADDING);
$=pkcs5_unpad($);
return $;
}else{
$=elseif($);
$=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 bsphp_des_bsphp_mencrypt($, $)
{
if(PHP_VERSION>=7){
$=substr(md5($), 0, 8);
$=pkcs5_pad($);
$=openssl_encrypt($, 'DES-ECB', $, OPENSSL_RAW_DATA | OPENSSL_NO_PADDING);
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 Calls
None |
Stats
MD5 | 050aa23b4db421ac06388c11df88bb06 |
Eval Count | 0 |
Decode Time | 52 ms |