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 $username = $_POST['username']; $password = $_POST['password']; // Simulated ha..

Decoded Output download

Invalid credentials. Try again.

Did this file decode correctly?

Original Code

<?php
$username = $_POST['username'];
$password = $_POST['password'];

// Simulated hashed password
$stored_hash = "5f4dcc3b5aa765d61d8327deb882cf99"; // Password: password

if ($username === "admin" && md5($password) === $stored_hash) {
    echo "Welcome, admin! Here is your flag: CTF{basic_md5_broken}";
} else {
    echo "Invalid credentials. Try again.";
}
?>

Function Calls

md5 1

Variables

$password None
$username None
$stored_hash 5f4dcc3b5aa765d61d8327deb882cf99

Stats

MD5 db4d060d3226ca4e14dc63a12ef13d44
Eval Count 0
Decode Time 62 ms