PHP Code:
<?php
$salt="$2y$07$bhfjdiiglt.lod387yhsi";
$old_password="173.22.459.158fadfgdfg";
$new_password="173.22.45";
$old_password=crypt("$old_password",$salt);
$new_password=crypt("$new_password",$salt);
echo"$old_password<br>$new_password<br>";
?>
produces identical results. If the salt is:
Code:
$salt="$2y$07$bhfjdggggt.lo";
I still get the following hashed results.
Code:
$29AzSzYWnQIo
$29AzSzYWnQIo
Apparently it has something to do with the period inserted in my salt.
Testing further if I use any of the following salts:
Code:
$salt="$2y$07$a111111111111111111111";
$salt="$2y$07$abcdefghijklmnopqrstuv";
$salt="$2y$07$a111111111111111111111";
$salt="$2y$07$z111111111111111111111";
$salt="$2y$07$A111111111111111111111";
I get hash results of:
Code:
$2y$07$$$$$$$$$$$$$$$$$$$$$$.2nQ9E9AcydYp.2eiPJ2AQKr0V/PrQBe
$2y$07$$$$$$$$$$$$$$$$$$$$$$.lB8QuQjzbPsayD0PksDNYZnptEWnri2
but
Code:
$salt="$2y$07$2111111111111111111111";
and
Code:
$salt="$2y$07$3111111111111111111111";
produce different results.
Bookmarks