$hashLength = 25;
$characters = array(
"A","B","C","D","E","F","G","H","J","K","L","M",
"N","P","Q","R","S","T","U","V","W","X","Y","Z",
"1","2","3","4","5","6","7","8","9");
$nrOfMd5s = 5;
$i=0;
while ($i < $nrOfMd5s) {
$keys = array();
while(count($keys) <= $hashLength) {
# "0" because we use this to FIND ARRAY KEYS which has a 0 value
# "-1" because were only concerned of number of keys which is 32 not 33
# count($characters) = 33
$x = mt_rand(0, count($characters)-1);
# if(!in_array($x, $keys)) {
$keys[] = $x;
# }
}
foreach($keys as $key){
$hashStr .= $characters[$key];
}
echo $hashStr," ";
$hashStr = '';
$i++;
} # end while
echo "";
$nrOfMd5s = 15;
$i=0;
while ($i < $nrOfMd5s) {
echo md5($file.time().$i.'#') . ' ';
$i++;
} # end while
echo "";
$nrOfMd5s = 15;
$i=0;
while ($i < $nrOfMd5s) {
echo sha1($file.time().$i.'%') . ' ';
$i++;
} # end while
?>