News for hackers. Stuff that matters.
Re:Cheap GPUs rendering strong passwords useless? by RyanMcGreal on Sunday June 05, 2011 @10:52PM (#2623503)
Unless you run C2 on top of C1.
Re:Cheap GPUs rendering strong passwords useless? by tedunangst on Sunday June 05, 2011 @11:09PM (#2623543)
bcrypt doesn't work like that. The outline is:

    work * costfactor
    finish
The finish step is irreversible, so you can't unwind it and add more work later. In practice though, even low cost factors for bcrypt are tons more work than MD5 or SHA. It's not a big deal.
Re:Cheap GPUs rendering strong passwords useless? by tzs on Sunday June 05, 2011 @11:29PM (#2623575)
I think what he means by run C2 on top of C1 is something like this. Let b(k,w) mean bcrypt with work factor w on input k.

So, initially, you are storing b(pass,C1). Running C2 on top of C1 would mean replacing that with b(b(pass,C1),C2).

Later, when you want even more work, another layer could be added: b(b(b(pass,C1),C2),C3) and so on.

Re:Cheap GPUs rendering strong passwords useless? by tedunangst on Monday June 06, 2011 @12:01AM (#2623657)
ugh, no thank you.
Re:Cheap GPUs rendering strong passwords useless? by palish on Sunday June 05, 2011 @11:26PM (#2623572)
He didn't say "unwind it". He said "on top of it".

  bcrypt( bcrypt( "foo", c1 ), c2 )