Re:Weebly Valued at $455M Amid Website-Building Boom
by drusenko on Tuesday April 22, 2014 @04:51PM
(#7630360)
We fixed the password limit. Thanks for the great feedback.
Re:Weebly Valued at $455M Amid Website-Building Boom
by rajacombinator on Tuesday April 22, 2014 @07:24PM
(#7631127)
Now that, folks, is how you take care of your users. Other startups (Coinbase I'm looking at you...) would do well to take note.
Re:Weebly Valued at $455M Amid Website-Building Boom
by thirsteh on Tuesday April 22, 2014 @01:36PM
(#7629090)
With bcrypt you should set a limit of 72 bytes to avoid fooling users into thinking the stuff beyond the 72nd byte matters (bcrypt truncates it.)
Re:Weebly Valued at $455M Amid Website-Building Boom
by rescripting on Tuesday April 22, 2014 @01:49PM
(#7629180)
Why should I have to choose a different, shorter password because of your implementation details? Seems like an unnecessary annoyance.
Re:Weebly Valued at $455M Amid Website-Building Boom
by thirsteh on Tuesday April 22, 2014 @02:22PM
(#7629399)
It is annoying, but it is necessary to avoid users choosing longer passwords where the necessary randomness is beyond the 72nd byte. Allowing a password of unlimited length when you support only e.g. 20 or 50 bytes is just as bad as putting in a maximum length restriction when you don't have one.
Ideally, just use scrypt or PBKDF2, which don't have length restrictions.
Re:Weebly Valued at $455M Amid Website-Building Boom
by just2n on Tuesday April 22, 2014 @08:09PM
(#7631285)
I wouldn't want to limit the password a user supplies. Any password should work, including 1 byte or 1 gb passwords. Restrictions of any form have always just caused more problems than they've solved.
But the solution I've favored is hashing the user's password on the client with a hash that provides enough significant bits that your key derivation on the server is not weakened. This way you get the benefit of not needing to deal with differences in transmission size and the user's plaintext password is never exposed to any listener (regardless of whether the connection is secure, or believed to be secure).
Re:Weebly Valued at $455M Amid Website-Building Boom
by mscarborough on Tuesday April 22, 2014 @06:11PM
(#7630817)
Your passwords are routinely longer than 72 bytes, and this is an inconvenience?
Re:Weebly Valued at $455M Amid Website-Building Boom
by hueving on Tuesday April 22, 2014 @02:28PM
(#7629435)
Or hash it first using SHA3. Then you get the slowness of bcrypt (which is what you're using it for) and the variable length input of SHA3. You're only risk is a SHA3 collision, which is not something that is realistically going to happen.
We salt and hash all passwords using a variable-cost bcrypt implementation.