aboutsummaryrefslogtreecommitdiffhomepage
path: root/testcases.txt
diff options
context:
space:
mode:
authorPerlbotics <perlbotix@cpan.org>2017-11-15 21:34:07 +0100
committerPerlbotics <perlbotix@cpan.org>2017-11-15 21:34:07 +0100
commit1316210f7d795de8ff7d4c5651501a33248b6e20 (patch)
tree429733e28a6b9e41c01aaa8d66b9fd38776e6506 /testcases.txt
parent729be61ffc589a01850d93ab9b9679b097b559b3 (diff)
downloadzxcvbn-c-1316210f7d795de8ff7d4c5651501a33248b6e20.tar.gz
Exhaustive spacial tests across all registered keyboard layouts.
The previous test stopped when a (any) match for a given substring was found. While this is slightly faster than an exhaustive search across all registered keyboard layouts, it could result in a too optimistic entropy estimation. Example: The string jkl;'# yield the following entropies depending whether the UK-keyboard layout had a chance to be tested or not: Layout Code base Entropy ---------------------------------------------------------------------- US previous bits=17.080 log10=5.142 Multi-word extra bits=1.0 UK this bits=11.116 log10=3.346 Multi-word extra bits=0.0 ---------------------------------------------------------------------- The time to perform these checks were identical (i.e. 0.07ms, here). A new testcase for UK-layout was added. All legacy tests pass. New test passes. valgrind-check: passed
Diffstat (limited to 'testcases.txt')
-rw-r--r--testcases.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/testcases.txt b/testcases.txt
index 8eaeac3..cddf519 100644
--- a/testcases.txt
+++ b/testcases.txt
@@ -59,4 +59,8 @@ pass.word.pass.word.pass.word. 60.41
passpasswordword 17.28
quvpzquvpz 24.50
+#-- with UK KBD (US-KBD=17.08)
+jkl;'# 11.12
+
magicfavoriteunclepromisedpublicbotherislandjimseriouslycellleadknowingbrokenadvicesomehowpaidblairlosingpushhelpedkillingusuallyearlierbosslaurabeginninglikedinnocentdocruleselizabethsabrinasummerexcoplearnedthirtyrisklettingphillipspeakingofficerridiculoussupportafternoonericwithsobutallwellareheohaboutrightyou're 545.9
+