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

3

u/mrkite77 Mar 10 '17

Another point that wasn't brought up in the post: you shouldn't even be ABLE to set a max length. If you're doing security properly,

If you're doing security properly you shouldn't allow the user to send a gigabyte of data to hash for their password.

You absolutely should have a max length.

2

u/b1ackcat Mar 10 '17

I'm talking about capping the character count as one of the displayed password rules. I guess I must not have been clear since people keep pointing this shit out.

My point is you shouldn't care about the length of a users password in the context of password security. Of course there are technical reasons you wouldn't want to allow any arbitrary size field for ANY value to be sent up. But telling a user they can't use a 13 character password because your limit is 12 for some reason is bad security.