Created
December 4, 2015 09:22
-
-
Save mamorunl/3ab70dd3848123e0d90a to your computer and use it in GitHub Desktop.
AOC_4.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$input = "yzbqklnj"; | |
$result = "00000"; | |
for($i = 0; $i < 999999999999; $i++) { | |
$md5 = md5($input . "" . $i); | |
if(!strcmp(substr($md5, 0, strlen($result)), $result)) { | |
echo substr($md5, 0, strlen($result)), "<br>"; | |
echo $i . "=" . $md5; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment