密码哈希
我正在创建一个存储用户密码的网络应用程序。我想知道程序员可以用来哈希密码的最佳方法/算法是什么?
I am creating a web application which stores users passwords. I was wondering what are the best methods / algorithms that a programmer can use to hash passwords?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
关键强化技术,例如 bcrypt 或 PBKDF2 通常被认为比普通哈希更好,因为破解它们需要更多资源。这样做的缺点是生成和验证它们也需要更多的资源; 您的资源。
无论您选择哪种算法,请始终使用合适的每用户salt 。
Key strengthening techniques such as bcrypt or PBKDF2 are generally considered better than plain hashes since cracking them requires more resources. The downside of this is that generating and verifying them also requires more resources; your resources.
Regardless of exactly which algorithm you choose, always use a suitable, per-user salt.
这是一篇相关文章...
http://www.h-online .com/security/features/Storing-passwords-in-uncrackable-form-1255576.html
它提到了这个工具...
http://www.openwall.com/phpass/
也许它可以帮助您获得一些想法?!
编辑:
This is a related article...
http://www.h-online.com/security/features/Storing-passwords-in-uncrackable-form-1255576.html
and it mentions this tool...
http://www.openwall.com/phpass/
Maybe it helps you to get some ideas?!
Edit: