logoalt Hacker News

mik1998 • today at 5:26 PM • 1 reply • view on HN

Constant time strcmp doesn't fix it. The problem is that the user doesn't have a password at all (the hash is *). But which hashing algorithm is used is encoded in the password. So they pick a different user's hash to not leak the information that there is no password. Alternate solution would be to hardcode a specific algorithm, but that could also leak info in many cases, I guess.


Replies

sysguest • today at 7:42 PM

hmm why not make some fake-users just for this stuff?