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.

Don't hash passwords? I say yes. Hash them And correctly

22 pointsby cjgover 15 years ago

6 comments

justin_vanwover 15 years ago
This is a blog post responding to another blog post. The first one recommended using HMAC in a place where it is totally appropriate to use HMAC. The response seems to miss that point.<p>To store passwords in a database the 'proper hash' to use is openbsd's bcrypt. <a href="http://www.openbsd.org/papers/bcrypt-paper.ps" rel="nofollow">http://www.openbsd.org/papers/bcrypt-paper.ps</a>
评论 #1086559 未加载
评论 #1086499 未加载
评论 #1086803 未加载
cpercivaover 15 years ago
People use HMACs to derive keys from passwords? Idiots.
评论 #1086795 未加载
oconnoreover 15 years ago
Question: All of these discussions are based on the hacker having access to your database. If you really don't trust your hosting company not to leak your database details, why do you trust them not to overwrite your administrative password with an appropriately salted bcrypt/whatever hash?
评论 #1086630 未加载
评论 #1087097 未加载
评论 #1086858 未加载
danskilover 15 years ago
So, if you have a hash, and your salt gets compromised, is there a way to re-salt without losing all old passwords? I'm thinking specifically of frameworks like rails where you can have hashes applied auto-magically.
评论 #1086568 未加载
评论 #1086498 未加载
评论 #1086879 未加载
DanielStraightover 15 years ago
The author admits to having little math ability and makes cryptographic recommendations anyway? Cryptography <i>is</i> math. If you don't know math, you don't know cryptography.
评论 #1086519 未加载
ElbertFover 15 years ago
I usually hash passwords like this:<p><pre><code> $hash = sha1('foo' . $username . $password); </code></pre> Can someone explain to me why or when this isn't good enough?
评论 #1104205 未加载