News for hackers. Stuff that matters.
Re:Modern SQL in PostgreSQL by reitzensteinm on Monday February 09, 2015 @12:16AM (#9019792)
You don't even really need the book keeping - you can update the hash in place as you say, then just try both eg bcrypt . password and bcrypt . md5 . password. It would be even simpler to style all future passwords as bcrypt . md5 . password but I'm not sure of the security implications of that as a permanent measure and so wouldn't do it personally.
Re:Modern SQL in PostgreSQL by bradleyjg on Monday February 09, 2015 @12:04PM (#9022225)
Security wise bcrypt(md5(password)) is at least as strong as bcrypt(password). However broken md5 is it is certainly no easier to find a preimage than where you already have the preimage. (Edit: now that I think about it, it could be worse if there is a side channel in your md5 implementation.)

If you do it that way you'll pay a performance cost on every password check forever. I suppose that trade-off might worth it in some cases.

Re:Modern SQL in PostgreSQL by Xorlev on Monday February 09, 2015 @01:06PM (#9022593)
So much of password hashing is a deliberate performance cost anyways, it almost hardly matters if your password passed through md5 and sha{1,2}. bcrypt will eclipse them all in relative cost, as it should be.