aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
diff options
context:
space:
mode:
authortony <tsyrogit@users.noreply.github.com>2016-09-28 23:25:49 +0100
committertony <tsyrogit@users.noreply.github.com>2016-09-28 23:25:49 +0100
commit10c4494cfcd52b4fee8eee6c1e1cc814cc1b224c (patch)
tree7679c5d797c54525f5a2a8cf5a5ba3e4934ed856 /test.c
parent915dd05d5e269e37e276b2a9c2fc37bd3677de15 (diff)
downloadzxcvbn-c-10c4494cfcd52b4fee8eee6c1e1cc814cc1b224c.tar.gz
Allow for sequences like 2468 to be detected.
Also add printing password entropy as log10(guesses)
Diffstat (limited to 'test.c')
-rw-r--r--test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.c b/test.c
index bb0f8bd..5c40b6b 100644
--- a/test.c
+++ b/test.c
@@ -60,9 +60,9 @@ static void CalcPass(const char *Pwd, int Quiet)
gettimeofday(&t1, 0);
e = ZxcvbnMatch(Pwd, UsrDict, &Info);
gettimeofday(&t2, 0);
-
+
Len = strlen(Pwd);
- printf("Pass %s \tLength %d\tEntropy %.3f\n", Pwd, Len, e);
+ printf("Pass %s \tLength %d\tEntropy bits=%.3f log10=%.3f\n", Pwd, Len, e, e * 0.301029996);
p = Info;
ChkLen = 0;
while(p)