ZXCVBN password strength estimator with Czech (CS-CZ) dictionaries. Other than localization of the feedback and wordlists, the API is identical to original zxcvbn.js.
Download dist/zxcvbn.js, then add script reference to your HTML
<script src="path/to/zxcvbn.js"></script>
Please refer to original ZXCVBN Usage section, as the API is completely identical.
You can try the estimator on the demo (with full feedback and reasoning displayed), or you can see a live deployment at idnes.cz Registration page.
Tip: Try typical Czech passwords such as
heslo
(Czech for password),honzik
(frequent name) orěščřžýá
(keyboard walk on Czech keyboard). Compare results with English zxcvbn demo.
The Czech dictionaries were constructed using the original zxcvbn's scripts, just using Czech sources.
- Wikipedia wordlist used Czech Wikipedia mutation
- TV+Film wordlist used a query for Czech subtitles on OpenSubtitles
- Names and surnames were pulled off Czech Statistical Offices' database
- Passwords were obtained from Exploit.in and AntiPublic combolists,
grep
-ed for lines containing\.cz
(as in name@email.cz:password). There are some artefacts remaining (likea838hfiD
being #7 most popular password, which is not likely), but overall, the wordlist seems to reflect real world reasonably well.
Addition of Czech dictionaries doubled the number of dictionaries to be shipped. To keep the size on par with the original zxcvbn, the length of each dictionary in the built library (in /dist/zxcvbn.js
) was decreased to one-half of the original value. The final file is 409 kB gzipped, similar to original's 390 kB.
Tip: If you can use zopfli gzip algorithm, you can reduce the size to 393 kB.
If you wish to change the dictionary size (increase, decrease, or change Czech:English ratio), you can do so in /data-scripts/build_frequency_lists.py
.
Localization and testing was done by idnes.cz developers.
MIT, same as original.