aboutsummaryrefslogtreecommitdiffhomepage
path: root/zxcvbn.c
Commit message (Collapse)AuthorAge
* Limit full entropy estimation to the first 100 characters of a password to limittony2022-04-07
| | | | | the processing time of very long passwords. Use a simple low entropy estimation for the remaining characters of a longer password.
* Fix clang compilation fail, github issue #22 reported by ksdd.tony2018-08-29
|
* Selftests removed from library and placed into test-internals.Perlbotics2017-11-21
| | | | | | Selftests extracted (removed) from zxcvbn.c and test.c and placed into test-internals.c Makefile updated.
* Internal selftest added. Keyboard-layout integrity checked.Perlbotics2017-11-16
| | | | | Test binaries perform additional selftests now. This helps to detect errors in keyboard layout definitions early.
* Exhaustive spacial tests across all registered keyboard layouts.Perlbotics2017-11-15
| | | | | | | | | | | | | | | | | | | | | | 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
* Fix for UK_Qwerty layout. Fix for Dvorak array size.Perlbotics2017-11-15
| | | | | | | Two layout fixes around the keys ',' and ';'. Dvorak layout array size reduced to 47*7. Test outcome was not affected.
* Merge pull request #14 from dhenot/mastertsyrogit2017-05-15
|\ | | | | Fix match for decrementing sequences causing heap corruptions
| * Fix match for decrementing sequencesDavid Hénot2017-05-11
| | | | | | | | | | This was causing heap corruptions (write past array boundary) in ZxcvbnMatch for passwords ending with 09 for example
* | Correct name in LICENSE.txt and change license header in other source files ↵tony2017-05-15
|/ | | | to match.
* Calculate the required size for PossChars based on the dictionary used. The fixtony2017-03-04
| | | | | for this by hannob in commit ad2ef761 works for the current dictionary, but would fail if a dictionary is used with 49 or more possible characters for one of its nodes.
* Fix one byte buffer overflow in ListPossibleChars().Hanno2017-03-01
| | | | | The array PossChars, part of DictWork_t, needs to be one byte larger to hold the trailing zero byte.
* Fix memory leaktony2016-10-24
|
* Add extra entropy if a password is made from multiple matches, also move ↵tony2016-10-24
| | | | some controlling #defines to beginning of zxcvbn.c
* update to use larger dictionaries from the Dropbox version of zxcvbn.tony2016-10-16
| | | | Also allow for repeated sequences.
* Allow for sequences like 2468 to be detected.tony2016-09-28
| | | | Also add printing password entropy as log10(guesses)
* Merge branch 'build-libs' of https://github.com/spwhitton/zxcvbn-ctony2016-09-25
|\
| * Angled-include zxcvbn.hSean Whitton2016-09-24
| | | | | | | | To build as a shared/static library.
* | Add missing cast for C++11Sean Whitton2016-09-24
|/ | | | | | Fixes build with gcc 5+ Fixes #1
* Initial commit.tony2015-01-03