【发布时间】:2013-06-18 00:25:16
【问题描述】:
阅读有关 PHP 5.5 的新 password_hash 函数的文档,我想知道默认算法是什么:
password_hash("rasmuslerdorf", PASSWORD_DEFAULT);
有关它的文档没有说明这一点:http://www.php.net/manual/en/password.constants.php
【问题讨论】:
-
看起来像一些内部哈希。
-
查看 us2.php.net/password_hash 的文档,它看起来像 BCrypt。他们在输入中引用它,输出类似于 BCrypt 输出,但我不能肯定。
-
当支持更新、更强大的哈希算法时,这可能会在更新的 PHP 版本中发生变化。
标签: php security hash passwords php-password-hash