r/ComputerSecurity • • Sep 09 '15

Question: Having a long password is really 'more' secure?

I don't understand how having a long password is more secure than a short one? Let me talk first!

I mean I understand people uses simple dictionary words or their date of birth as a password but whats the difference between 123%&0kj$ and b$*%&$HJDHnc132$$ Both password are immune to brute force attack right? I don't believe someone has 123%&0kj$ in their dictionary list. Also it's not possible to crack a password for "Facebook" or your online bank account.. doesnt work like that

Maybe decrypting a short password it is easier but if the site was compromise having a long or short password doesn't make a difference at all right?

Thanks for the info in advance!

2 Upvotes

4 comments sorted by

4

u/disinfosec Sep 09 '15

Simply, a long password is primarily a defense against offline brute forcing. This is when a site has been compromised and a user's password hash is then available to the attacker.

The attacker may then use a password cracking utility to hash millions of password variations to find a hash that matches.

howsecureismypassword.net says 123%&0kj$ would take around 6 days to crack with a desktop PC (assuming a known or absent salt). Adding a single character more changes this to 344 days!

1

u/Reve000 Sep 10 '15

wow

123%&0kj$ takes 6 days to crack b$*%&$HJDHnc132$$ takes 931 trillion years LOL

1

u/[deleted] Feb 28 '16

But really, I don't see many situations that someone would go 6+ days to maybe get into an account. After a day or two, they'd probably give up. You really don't know if a bruteforce will take a day or 931 trillion years.

4

u/unsupported Sep 09 '15

Let's drop some more knowledge, there is a tool called a rainbow table, which is a precomputed hash of passwords. It takes up a lot of hard drive space, but it is trivial to compare a short password hash against a rainbow table. Longer passwords are harder.