TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

“Website Passwords Hacked” headlines can be less scary

3 pointsby privasectechover 11 years ago

2 comments

dxmover 11 years ago
<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 未加载
mschuster91over 11 years ago
You totally forget about hash salting - this way a hacker can&#x27;t use rainbow tables or precomputed hashes for common passwords.
评论 #6771083 未加载
评论 #6771280 未加载