TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

“Website Passwords Hacked” headlines can be less scary

3 点作者 privasectech超过 11 年前

2 条评论

dxm超过 11 年前
<p><pre><code> The two most common methods, md5 and sha-1 are both susceptible to collisions, or birthday attacks. As of writing this, I would recommend using SHA-3-256 which has no known attacks. </code></pre> Don&#x27;t do that. Hashing algorithms without salt and iteration counts is a bad idea. Thankfully, languages and frameworks are starting to take this responsibility away from the programmer (or at least they&#x27;re making it easier) – consider using has_secure_password in Rails, password_hash in PHP 5.5, etc. Don&#x27;t use standard hashing algorithms.
评论 #6771284 未加载
mschuster91超过 11 年前
You totally forget about hash salting - this way a hacker can&#x27;t use rainbow tables or precomputed hashes for common passwords.
评论 #6771083 未加载
评论 #6771280 未加载