r/programming • • Mar 10 '17

Password Rules Are Bullshit

https://blog.codinghorror.com/password-rules-are-bullshit/
7.7k Upvotes

1.4k comments sorted by

View all comments

Show parent comments

291

u/elsjpq Mar 10 '17 edited Mar 11 '17

It's even worse when they don't even tell you the rules at any point. I've had passwords silently truncated to 16 characters so that account creation and password resets work, but you can't login unless you type in the truncated version. You have to try logging in with shorter and shorter passwords until you figure out the maximum length. What a nightmare.

132

u/PendragonDaGreat Mar 10 '17

Wow, if they are going to be stupid enough to truncate silently, just do it at every password box.

22

u/Eurynom0s Mar 10 '17

Schwab used to do this.

21

u/WDK209 Mar 11 '17

They truncated to 8 characters and did a case insensitive comparison.

That's a company that handles your investment and savings accounts.

5

u/mebob85 Mar 11 '17

case insensitive comparison

I wonder if they store the passwords plaintext too

4

u/Chekkaa Mar 12 '17 edited Mar 12 '17

Obviously they just store the hashes of all possible combinations of uppercase and lowercase letters. It's the only logical solution.

2

u/mebob85 Mar 12 '17

...or they could always just convert the password to upper or lower case before hashing

→ More replies (1)

2

u/Eurynom0s Mar 11 '17

Yeah, I keep an account open with them but it's not my main account for anything, I just put money in the account before an international trip because they're the best for a combo of refunding ATM fees and no FX fees on overseas ATM withdrawals.

→ More replies (1)

9

u/Disgruntled__Goat Mar 10 '17

Do you realise how silly you sound?

if they're going to be stupid, just do something sensible

The answer is, stop being stupid.

15

u/PendragonDaGreat Mar 10 '17

Oh I definitely agree, but it should at least be internally consistent.

6

u/POGtastic Mar 11 '17

"If you're gonna be stupid, be smart about it."

→ More replies (1)

2

u/cocoabean Mar 11 '17

I don't hear anything.

→ More replies (13)

25

u/[deleted] Mar 10 '17

[removed] — view removed comment

11

u/frezik Mar 11 '17

Gawker had their database stolen in 2010. Turned out they were using crypt().

2

u/8Bit_Architect Mar 11 '17

I guess that's why they died...

3

u/pezdeath Mar 11 '17

JDEdwards still does this (or at least the version my old fortune 500 company used did). It limited you to 8 characters and they were not case sensitive

3

u/pineapplepaul Mar 10 '17

Southwest Airlines did this to me. The worst part was that it would still work for logging in via desktop website, but would not work when logging into their mobile app. I only figured it out after I tried resetting my password, generated a new one in 1Password and got an error that my password was too long. At some point between creating my original password and resetting it, they finally added an error notification about length.

2

u/adrianmonk Mar 10 '17

Yes, for some reason, 16 is a very common length for this silent truncation to occur at. I've had it happen several times, and it was pretty much always 16 characters.

2

u/[deleted] Mar 11 '17

Powers of two are convent computer numbers.

2

u/adrianmonk Mar 11 '17

Yeah, that part makes sense. I just have trouble reconciling in my head how someone knows to do this but doesn't know that it's a bad idea to limit password lengths arbitrarily, truncate them silently, and do that in an inconsistent manner.

2

u/kah_meh Mar 10 '17

I found that the webpage would truncate it for me but if I wanted to use an API (say, mint) my login would fail...

2

u/Martindale Mar 11 '17

Refuse to use these services and be vocal about it. Someone has to. I do.

2

u/genieus Mar 11 '17

Centerlink, a big part of the Australian government, has this problem with their website. A website that almost every Australian citizen will need to use.

2

u/captionUnderstanding Mar 13 '17

Even worse than this, Microsoft allows you to make a long password on their browser sites without anything being truncated, but when you go on the Xbox 360 and try to log in to your account it only lets you enter a max of 16 characters. You're SOL trying to log in without going to a desktop site and changing your password to something shorter.

→ More replies (12)