diff options
Diffstat (limited to 'index.php.in')
-rw-r--r-- | index.php.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php.in b/index.php.in index c3dc987..efa6b85 100644 --- a/index.php.in +++ b/index.php.in @@ -42,7 +42,9 @@ function push_it() { } $saved_hash = trim(fgets($f)); fclose($f); - $entered_hash = hash('sha512', $_POST['password']); + $entered_hash = $_POST['password']; + for ($i=0; $i<1000; $i++) + $entered_hash = hash('sha512', $entered_hash . $i . $_POST['password']); if ($saved_hash != $entered_hash) { print '<font color="ff0000">Wrong password: ' . $entered_hash . '</font><br>' . "\n"; return; |