diff options
author | tony <tsyrogit@users.noreply.github.com> | 2016-09-28 23:25:49 +0100 |
---|---|---|
committer | tony <tsyrogit@users.noreply.github.com> | 2016-09-28 23:25:49 +0100 |
commit | 10c4494cfcd52b4fee8eee6c1e1cc814cc1b224c (patch) | |
tree | 7679c5d797c54525f5a2a8cf5a5ba3e4934ed856 /test.c | |
parent | 915dd05d5e269e37e276b2a9c2fc37bd3677de15 (diff) | |
download | zxcvbn-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |