4 ms·
Thank you for that. Note: the trouble is that if you use a password manager it will create arbitrarily long and very secure passwords for you that _far_ exceed
by michaelbuckbee 9y ago
Thank you for that. Note: the trouble is that if you use a password manager it will create arbitrarily long and very secure passwords for you that _far_ exceed what you would expect for a "normal" limit.
- meteor333 9y agoSorry didn't think about that. Can you tell me what is generally accepted limit for password managers or in general?
- LyndsySimon 9y agoWhy have a limit at all? You should be comparing against a hash anyhow, which is fixed length. I generally use 128-char passwords by default, and only use shorter ones when a service requires it.
- meteor333 9y agoJust the db limit, but yes increasing to 128 shouldn't be an issue. Edit: Passwords are stored with bcrypt hash. That's right password limit shouldn't matter.
- usmannk 9y agoDoes this mean that you are storing plaintext passwords in the db? The hashes should be the same length regardless of the password length.
- deleted 9y ago[deleted]
- LyndsySimon 9y agoYikes. Yeah, you should be storing the password hashes in the DB, not the passwords. The hashes are going to be the same length regardless of the password's length. If you wanted to get real fancy, hash the password once on the client side (reducing it to a known length), then again on the server. You should also be using a per-user salt to prevent a rainbow table from being generated if your DB is leaked.
- meteor333 9y agoyup it is stored with bcrypt hash and per-user salt.
- egypturnash 9y agoLastPass currently caps its generated passwords at 100 but it used to be more like 1000.
- d-jo 9y agoLast Pass generates up to 100 characters. In addition, the OWASP authentication cheat sheet says a typical max is ~128 characters. https://www.owasp.org/index.php/Authentication_Cheat_Sheet#Password_Length https://www.owasp.org/index.php/Authentication_Cheat_Sheet#P...
- signal11 9y agoNIST's 2017 guidelines say: 5.1.1.2: "Verifiers SHALL require subscriber-chosen memorized secrets to be at least 8 characters in length. Verifiers SHOULD permit subscriber-chosen memorized secrets at least 64 characters in length." [1] [1] https://pages.nist.gov/800-63-3/sp800-63b.html https://pages.nist.gov/800-63-3/sp800-63b.html or https://doi.org/10.6028/NIST.SP.800-63b https://doi.org/10.6028/NIST.SP.800-63b
- meteor333 9y agoThank you. That helps.
- rabboRubble 9y agoI use a common password manager and its max generated password length is 64, so it's in agreement with NIST. That said I am able to manually add characters to increase beyond 64.