Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<? $encodedSecret = "3d3d516343746d4d6d6c315669563362"; function encodeSecret($sec..

Decoded Output download

 
<? 
 
$encodedSecret = "3d3d516343746d4d6d6c315669563362"; 
 
function encodeSecret($secret) { 
    return bin2hex(strrev(base64_encode($secret))); 
} 
 
if(array_key_exists("submit", $_POST)) { 
    if(encodeSecret($_POST['secret']) == $encodedSecret) { 
    print "Access granted. The password for natas9 is <censored>"; 
    } else { 
    print "Wrong secret"; 
    } 
} 
?>

Did this file decode correctly?

Original Code


<?

$encodedSecret = "3d3d516343746d4d6d6c315669563362";

function encodeSecret($secret) {
    return bin2hex(strrev(base64_encode($secret)));
}

if(array_key_exists("submit", $_POST)) {
    if(encodeSecret($_POST['secret']) == $encodedSecret) {
    print "Access granted. The password for natas9 is <censored>";
    } else {
    print "Wrong secret";
    }
}
?>

Function Calls

array_key_exists 1

Variables

$encodedSecret 3d3d516343746d4d6d6c315669563362

Stats

MD5 be6c5786fa5fa6113a70677a380d0748
Eval Count 0
Decode Time 73 ms