- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
- Parse error: syntax error, unexpected ')' in /in/MadW4 on line 5
Process exited with code 255.
<?php
$str = '';
$hashes = array();
$salts = array('BCRYPT' => '$2a$04$1234567890123456789012', 'SHA256' => '$5$rounds=1000$usesomesillystringforsalt$','SHA512' => '$6$rounds=1000$usesomesillystringforsalt$', 'MD5' => '$1$rasmusle$'));
foreach ($salts as $algo => $salt) {
do {
$str .= '0';
$hashes[] = crypt($str, $salt);
if (count(array_unique($hashes)) === count($hashes))
$allUnique = true;
else
$allUnique = false;
} while($allUnique);
echo "Stopped at " . strlen($str) . " characters for salt $algo before truncation was detected...\n\n";
$lst = array_pop($hashes);
$stl = array_pop($hashes);
echo "$stl\n$lst";
}