2 ms·
I recently put together a commentary + code on how to upgrade passwords hashed insecurely in your DB without user intervention. This was in response to MtGox ta
by peteretep 15y ago
I recently put together a commentary + code on how to upgrade passwords hashed insecurely in your DB without user intervention. This was in response to MtGox talking about "slowly migrating users", which presumably means upgrading passwords at the point of login:
https://gist.github.com/1051238 https://gist.github.com/1051238
- carbocation 15y agoIf I'm not misunderstanding your purpose, why not just: 1) Take those md5 unsalted passwords and 2) bcrypt them Then upgrade the users to non-pre-hashed bcrypt as they log in? ?
- peteretep 15y agoWhy do you think that isn't what this is doing, only with fault tolerance to allow more than one scheme upgrade?
- carbocation 15y agoBecause the juicy bits got cut off due to the way github is displayed on my phone. Sorry I couldn't see that portion!