我正在编写一段 php 代码,但没有给我想要的输出;
function passhash($unhashPass){
if(CRYPT_BLOWFISH != 1) {
throw new Exception("bcrypt not supported in this installation.);
}
$salt = "test123";
$password = hash_pbkdf2 ("sha256", $unhashPass, $salt, 1, 20);
echo $password;
return $password;
}
当我在散列之前放置 unhashpass 或 salt 的 echo 语句时,它可以工作,但在它什么都不做之后,整个 php 脚本只会给我一个白屏。有人可以帮我:)吗?
干杯