zulip/zerver
Greg Price a116303604 passwords: Express the quality threshold as guesses required.
The original "quality score" was invented purely for populating
our password-strength progress bar, and isn't expressed in terms
that are particularly meaningful.  For configuration and the core
accept/reject logic, it's better to use units that are readily
understood.  Switch to those.

I considered using "bits of entropy", defined loosely as the log
of this number, but both the zxcvbn paper and the linked CACM
article (which I recommend!) are written in terms of the number
of guesses.  And reading (most of) those two papers made me
less happy about referring to "entropy" in our terminology.
I already knew that notion was a little fuzzy if looked at
too closely, and I gained a better appreciation of how it's
contributed to confusion in discussing password policies and
to adoption of perverse policies that favor "Password1!" over
"derived unusual ravioli raft".  So, "guesses" it is.

And although the log is handy for some analysis purposes
(certainly for a graph like those in the zxcvbn paper), it adds
a layer of abstraction, and I think makes it harder to think
clearly about attacks, especially in the online setting.  So
just use the actual number, and if someone wants to set a
gigantic value, they will have the pleasure of seeing just
how many digits are involved.

(Thanks to @YJDave for a prototype that the code changes in this
 commit are based on.)
2017-10-08 15:48:44 -07:00
..
fixtures tests: Add a test suite for verifying the mobile push notifs content. 2017-10-06 16:47:27 -07:00
lib mypy: Workaround lxml annotations being busted. 2017-10-08 12:38:20 -07:00
management Cleanup: Remove shebang and executable flag from these files. 2017-10-08 15:38:15 -07:00
migrations zerver/migrations: Remove from __future__ import *. 2017-09-28 10:16:18 -07:00
templatetags zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00
tests passwords: Express the quality threshold as guesses required. 2017-10-08 15:48:44 -07:00
tornado Rename presence_idle_userids -> presence_idle_user_ids. 2017-10-07 12:16:45 -07:00
views passwords: Express the quality threshold as guesses required. 2017-10-08 15:48:44 -07:00
webhooks webhooks: Remove use of get_user_profile_by_email. 2017-10-02 15:28:44 -07:00
worker worker: Retry signups queue event on 400. 2017-10-05 23:14:19 -07:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py Remove the rest of print_function. 2017-09-27 18:06:47 -07:00
context_processors.py passwords: Express the quality threshold as guesses required. 2017-10-08 15:48:44 -07:00
decorator.py decorator: Improve wrong-subdomain logging output. 2017-10-02 13:31:20 -07:00
filters.py zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00
forms.py forms: Extract check_subdomain_available. 2017-10-03 17:44:46 -07:00
logging_handlers.py docs: Add more comprehensive documentation on error reporting. 2017-09-27 19:47:08 -07:00
middleware.py middleware: Remove logic for redirecting to zulipdev.com domains. 2017-10-05 23:21:02 -07:00
models.py subdomains: Hardcode REALMS_HAVE_SUBDOMAINS=True. 2017-10-02 16:42:43 -07:00
signals.py zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00