哪种密码哈希算法使用&quot'密码 - 哈什:passwort默认值”在PHP中
简短问题:
哪种算法使用PHP方法:password_hash(“ xxx”,password_default);
这是MD5或SHA512之类的近距离名称,还是它是具有password_default名称的算法?
对于考试,我需要知道这一点,但是我在万维网上没有找到任何东西
Short Question:
Which algorithm uses the PHP method: password_hash("xxx", PASSWORD_DEFAULT);
Has this a closer name like md5 or sha512 or is this an own algorithm with the name PASSWORD_DEFAULT?
For an exam I need to know this, but I didn't found anything to this on the World Wide Web
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它在
。当前是
password_bcrypt
(由于PHP 5.5.0)。哈希将包括password_verify()
的算法。它允许您实现密码存储,该密码存储将自动更新为新的(和更安全的算法)。password_hash()
password_default 创建密码哈希。password_verify()
。password_needs_hreashash()
进行检查后,并使用用户刚刚提供的密码更新哈希。It's documented in the PHP manual
It can change with new PHP versions. Currently it is
PASSWORD_BCRYPT
(since PHP 5.5.0). The hash will include the algorithm forpassword_verify()
. It allows you to implement password storage that will update to newer (and more secure algorithms) automatically.password_hash()
withPASSWORD_DEFAULT
to create the password hash.password_verify()
.password_needs_rehash()
and update the hash using the password the user just provided.