From e7f412d3bf2525f40c0823c5b93b7cca93e95bf5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 29 Oct 2015 16:02:58 +0100 Subject: add todo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- passcheck.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'passcheck.py') diff --git a/passcheck.py b/passcheck.py index e9e950f..7717eb0 100755 --- a/passcheck.py +++ b/passcheck.py @@ -114,6 +114,11 @@ def evaluate(data): blacklist = None try: + # TODO Converting into a set should be opt-in, and is an optimisation + # for servers that have the process running indefinitely can + # continuously feeds passphrases to it. On personal computers, + # it is better to do a binary search of the file without loading + # it completely. with open('blacklist', 'rb') as file: blacklist = set(file.read().decode('utf-8', 'replace').split('\n')) except FileNotFoundError: -- cgit v1.2.3-70-g09d2