aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-01-21 12:32:16 +0100
committerMattias Andrée <maandree@operamail.com>2014-01-21 12:32:16 +0100
commit4ff665a288cf08bc4603b23407911950f2604fec (patch)
treefacd3e955800f04edd9b8249de890ece15e6e176
parentmetrics fix (diff)
downloadpasscheck-4ff665a288cf08bc4603b23407911950f2604fec.tar.gz
passcheck-4ff665a288cf08bc4603b23407911950f2604fec.tar.bz2
passcheck-4ff665a288cf08bc4603b23407911950f2604fec.tar.xz
new weight for distances
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--info/passcheck.texinfo2
-rwxr-xr-xpasscheck.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/info/passcheck.texinfo b/info/passcheck.texinfo
index c9fbab2..10dbe7e 100644
--- a/info/passcheck.texinfo
+++ b/info/passcheck.texinfo
@@ -63,7 +63,7 @@ Texts. A copy of the license is included in the section entitled
@command{passcheck} is a tool that rates passphrases based on the strengths,
a highly rated passphrase is a string passphrase. You are recommended not to
-use any passphrases rated below 250.
+use any passphrases rated below 300.
Passphrases are read from stdin and the rating followed by the passphrase
for each passphrases is written to stdout, and stderr is quited unless the
diff --git a/passcheck.py b/passcheck.py
index c9b0106..c7f81f1 100755
--- a/passcheck.py
+++ b/passcheck.py
@@ -96,7 +96,7 @@ def evaluate(data):
r = 3
classes[r - 1] += 1
if last is not None:
- r = distance(c, last) / 5
+ r = distance(c, last)
rc += r ** 0.5
last = c
if rc >= 0: