News for hackers. Stuff that matters.
Re:"Unknown or expired link." - Why? by pg on Tuesday October 11, 2011 @01:50PM (#3099563)
The problem there is that we switched to a new deliberately slow hashing function for passwords.

Edit: I investigated further, and actually you're right, the problem was due to caching. It should be better now because we're not caching for as long. But I will work on making login links not use closures.

Re:"Unknown or expired link." - Why? by tptacek on Tuesday October 11, 2011 @02:25PM (#3099721)
What'd you go with, and how much of a pain was it to get working in Arc?

I ask because I'd love to be able to make a claim like "even Hacker News, which is written in a Lisp, managed to implement a modern password hash".

Re:"Unknown or expired link." - Why? by pg on Tuesday October 11, 2011 @04:57PM (#3100268)
We use bcrypt. Rtm did it. I never looked at the code till now; it's about a page of Scheme.
Re:"Unknown or expired link." - Why? by tptacek on Tuesday October 11, 2011 @05:08PM (#3100312)
Thanks!
Re:"Unknown or expired link." - Why? by icey on Tuesday October 11, 2011 @03:58PM (#3100060)
Gauche Scheme has a bcrypt implementation, but I don't know what the compatibility story is between mzscheme and Gauche. I think they're both R5RS compliant, so it should work.

I see that newer versions of Arc run on Racket, but I have no idea if that's what HN is using or not.

I haven't seen a scheme powered PBKDF2 implementation so I'd guess that's out.

The only other expensive KDF I can think of is scrypt, but I would be pretty surprised if that's got a scheme implementation.

Of course, I guess pg could have decided to call out to the OS to run any of those functions too.

Re:"Unknown or expired link." - Why? by wnight on Tuesday October 11, 2011 @05:04PM (#3100295)
Is that specifically to inconvenience someone who would break in, steal your password list, and crack it offline?

If not, what was the design goal?

If slowing down web login attempts isn't part of it, why not get a dedicated auth server and offload the crypt stuff onto it?

And if it is the goal, you could use CPU-friendly sleeps on the front-end to give increasing delays to the repeated guesser.

Re:"Unknown or expired link." - Why? by technomancy on Tuesday October 11, 2011 @09:31PM (#3101113)
> Is that specifically to inconvenience someone who would break in, steal your password list, and crack it offline?

Probably: http://codahale.com/how-to-safely-store-a-password/

Hashing functions designed for speed are absolutely the wrong thing for passwords.

Re:"Unknown or expired link." - Why? by wnight on Friday October 14, 2011 @09:45PM (#3113702)
Yeah, that's what I'd have thought.

But I don't see the need to do the processing on the web servers.