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($secre..

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 e4795aa724297d028dd30f4ad8f1f417
Eval Count 0
Decode Time 102 ms