5 ms·
If you're hashing it who cares if someone wants to submit a 250MB password? They'll only be slowing their own session down - what I store in the database is alw
by lmm 13y ago
If you're hashing it who cares if someone wants to submit a 250MB password? They'll only be slowing their own session down - what I store in the database is always 256 bits either way.
- frou_dh 13y agoPredictably this just regresses to what constitutes a big number. Take your pick for one that would cause noteworthy resource consumption in a given system.
- calpaterson 13y agoBecause your app has to load it all into memory. Submitting many, very large payloads is a well known denial-of-service attack
- michaelt 13y agoLike a good developer, you run passwords through a slow hash function. This leaves you vulnerable to denial of service by wasting CPU hashing huge passwords: http://arstechnica.com/security/2013/09/long-passwords-are-good-but-too-much-length-can-be-bad-for-security/ http://arstechnica.com/security/2013/09/long-passwords-are-g...