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 decrypt($value) { $encrypted = base64_decode($value); $salt = substr($..
Decoded Output download
<? function decrypt($value)
{
$encrypted = base64_decode($value);
$salt = substr($encrypted,0,32);
$encrypted = substr($encrypted,32);
$salted = $dx = '';
while (strlen($salted) < 48)
{
$dx = md5($dx . '%86Xvj&fmAW4L!S7cvWuNK4W36F_VBe6_FkYX4h^ah9&9j?D6hw2E$J*!anA7Bac' . $salt, true);
$salted .= $dx;
}
$key = substr($salted,0,32);
$iv = substr($salted,32,16);
return openssl_decrypt($encrypted, 'aes-256-cbc', $key,OPENSSL_RAW_DATA, $iv);
} ?>
Did this file decode correctly?
Original Code
function decrypt($value)
{
$encrypted = base64_decode($value);
$salt = substr($encrypted,0,32);
$encrypted = substr($encrypted,32);
$salted = $dx = '';
while (strlen($salted) < 48)
{
$dx = md5($dx . '%86Xvj&fmAW4L!S7cvWuNK4W36F_VBe6_FkYX4h^ah9&9j?D6hw2E$J*!anA7Bac' . $salt, true);
$salted .= $dx;
}
$key = substr($salted,0,32);
$iv = substr($salted,32,16);
return openssl_decrypt($encrypted, 'aes-256-cbc', $key,OPENSSL_RAW_DATA, $iv);
}
Function Calls
None |
Stats
MD5 | d07f16ae79f7b775a30e28dad494ef9c |
Eval Count | 0 |
Decode Time | 48 ms |