Hi am using hashing for my project. I was created encryption correctly that code is following:
<?php
function cryptPass($input, $rounds = 9) {
$salt = "";
$saltChars = array_merge(range('A','Z'), range('a','z'), range('0','1'));
for($i = 0; $i < 22; $i++)
{
$salt .=$saltChars[array_rand($saltChars)];
}
return crypt($input, sprintf('$2y$%02d$', $rounds). $salt);
}
$pass = "passsword";
$hasedpass = cryptPass($pass);
echo $hasedpass;
echo '<br>';
?>
My result is: $2y$09$HICRjrIyBYXWqcqRFC1dDOXF9tTtKZeOTBewebsooxHtWvvepqrnu
Now my question is how to decrypt $hasedpass
.
I mean the result will be come password
$pass values.