32 points · by luccastera · 19y ago · 50 comments
I admit to being somewhat guilty of this, but I'm astonished anyone would use the same password for throwaway email acconts as for financial stuff. I do use only like 2 different passwords for all my stupid little Internet forum accounts, though.
I have been considering implementing something like a captcha code on my login forms (but haven't yet).
To brute force crack a password, you would really need direct access to the digest. We are talking around the order of 2^80 attempts before finding a collision with a algorithm like SHA-1. Checks need to happen very fast. Doing this through a web interface is already too slow to be feasible from a time perspective.
So really, cracking passwords is only a consideration when someone gets a hold of all your digests (eg. your database) and can crunch away on them locally for a long time.
SHA1 is strong (at least in this application). Passwords are very, very weak.
I have always assumed the database server is safe there alone on it's own network as long as someone doesn't break into a machine that is connected to that network.
Lesson: use someone else's (good) password system.
(ok, this isn't an option for everybody yet)
Ok, what? I use Ruby on Rails, and I want something open source. What do you recommend?
I'm not ready to stop thinking about hash dictionaries, and the 4-character salt I prepend to passwords before hashing is too short. A 4-character salt plus a 7-character password is a value that could be vulnerable to dictionaries roughly the size of the Rainbow tables.
But if you can cite a paper demonstrating that brute-force cracks of individual passwords are the only thing one need be concerned about, I'll look at it and see if it changes my mind.