Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
function crypt_chip($action, $string, $salt = '') { if ($salt != 'dTdxRDd3ZG81QmoycGJpV..
Decoded Output download
<? function crypt_chip($action, $string, $salt = '')
{
if ($salt != 'dTdxRDd3ZG81QmoycGJpVUNOREU4dm8yaXpqcTBBd0FXUVhqQVVDd2JWaXE5ZXVDSGpNQndqMU9QL1VEemQrYQ==') {
return false;
}
$key = '0|.%J.MF4AMT$(.VU1J' . $salt . 'O1SbFd$|N83JG' . str_replace('www.', '', $_SERVER['SERVER_NAME']) . '.~&/-_f?fge&';
$output = false;
$encrypt_method = 'AES-256-CBC';
if (is_null($key)) {
$secret_key = 'NULL';
}
else {
$secret_key = $key;
}
$secret_iv = '81QmoycGJpVUNORE';
$key = hash('sha256', $secret_key);
$iv = substr(hash('sha256', $secret_iv), 0, 16);
if ($action === 'encrypt') {
$output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);
$output = base64_encode($output);
}
else if ($action === 'decrypt') {
$output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);
}
return $output;
} ?>
Did this file decode correctly?
Original Code
function crypt_chip($action, $string, $salt = '')
{
if ($salt != 'dTdxRDd3ZG81QmoycGJpVUNOREU4dm8yaXpqcTBBd0FXUVhqQVVDd2JWaXE5ZXVDSGpNQndqMU9QL1VEemQrYQ==') {
return false;
}
$key = '0|.%J.MF4AMT$(.VU1J' . $salt . 'O1SbFd$|N83JG' . str_replace('www.', '', $_SERVER['SERVER_NAME']) . '.~&/-_f?fge&';
$output = false;
$encrypt_method = 'AES-256-CBC';
if (is_null($key)) {
$secret_key = 'NULL';
}
else {
$secret_key = $key;
}
$secret_iv = '81QmoycGJpVUNORE';
$key = hash('sha256', $secret_key);
$iv = substr(hash('sha256', $secret_iv), 0, 16);
if ($action === 'encrypt') {
$output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);
$output = base64_encode($output);
}
else if ($action === 'decrypt') {
$output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);
}
return $output;
}
Function Calls
None |
Stats
MD5 | c05557cc1478f188d0b89c53cd176b50 |
Eval Count | 0 |
Decode Time | 59 ms |