Langning on Nostr: Welcome to day 2 of the challenge. For this challenge, you can only change the string ...
Welcome to day 2 of the challenge. For this challenge, you can only change the string contents of your_pwd.
Side question, what time should I post them?
Objective: "win"
Bonus if you can explain why this happens
Hints will be provided in the replies. Good luck!
<?php
$your_pwd = "6990389311abc";
$my_pwd = "6990389311abc";
if ($your_pwd == $my_pwd) {
echo "My password is super secure, even I can't pass this check! \n";
} elseif (hash("md5", $your_pwd) == hash("md5", $my_pwd)){
echo "Wait how? You win! \n";
} else {
echo "Incorrect password \n";
}
?>
Side question, what time should I post them?
Objective: "win"
Bonus if you can explain why this happens
Hints will be provided in the replies. Good luck!
<?php
$your_pwd = "6990389311abc";
$my_pwd = "6990389311abc";
if ($your_pwd == $my_pwd) {
echo "My password is super secure, even I can't pass this check! \n";
} elseif (hash("md5", $your_pwd) == hash("md5", $my_pwd)){
echo "Wait how? You win! \n";
} else {
echo "Incorrect password \n";
}
?>