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.

Fairy tales in password hashing with scrypt

53 pointsby helperabout 11 years ago

4 comments

cpercivaabout 11 years ago
I&#x27;m confused. Why is he using scryptenc_buf when crypto_scrypt does what he wants?<p>I gave him a toolbox which contained a screwdriver and a hammer, and he seems to be complaining that the screwdriver isn&#x27;t very good at hammering nails.
评论 #7615914 未加载
评论 #7615928 未加载
评论 #7615912 未加载
评论 #7615701 未加载
jrockwayabout 11 years ago
&gt; Anyone could sign in to anybody else&#x27;s accounts using any passwords.<p>This is a good test to write: create two users, and see if one can log in using the other&#x27;s password. (There are lots of ways this could go wrong, not only by using a 0-length password.) Basically, if you don&#x27;t want something to happen, write a test that fails when it does.
tveitaabout 11 years ago
There&#x27;s a password hashing competition going right now that will hopefully result in some more state-of-the art primitives available through a suitable interface.<p><a href="https://password-hashing.net" rel="nofollow">https:&#x2F;&#x2F;password-hashing.net</a>
modelessabout 11 years ago
&gt; If I develop a crypto library, I&#x27;ll conduct user studies like how they do it in usability research. Give developers the library and ask them to conduct a specific task. Rinse and repeat until nobody would misuse it.<p>Yes! User testing is often ignored even by application developers who should really know better; it&#x27;s practically unheard of to perform user testing on APIs, but it makes so much sense. The world would be a better place.