зеркало из
1
0
Форкнуть 0
Utility library for checking the strength of a user's password
Перейти к файлу
Shane Tomlinson 06951de54d feat(src): Use more granular status messages.
* Remove leading `PASSWORD_`, it's implied.
* `NOT_STRONG_ENOUGH` => `ALL_LETTERS_OR_NUMBERS`
* `SUCCESS` => `LONG_ENOUGH` if the password >= 12 characters.
* `SUCCESS` => `BLOOMFILTER_MISS` if the bloomfilter is used.
2015-08-18 16:47:18 +01:00
build feat(src): Use more granular status messages. 2015-08-18 16:47:18 +01:00
scripts cleanup(scripts): Lots of script cleanup. 2015-08-17 17:32:47 +01:00
source_data feat(data): Use the datasets from the OWASP SecList. 2015-08-17 10:30:05 -07:00
src feat(src): Use more granular status messages. 2015-08-18 16:47:18 +01:00
tasks feat(data): Use the datasets from the OWASP SecList. 2015-08-17 10:30:05 -07:00
tests feat(src): Use more granular status messages. 2015-08-18 16:47:18 +01:00
.eslintignore chore(lint): fix lint issues 2015-08-03 10:31:56 -07:00
.eslintrc refactor(src): change variable and function name to better reflect meaning 2015-07-27 15:11:10 -07:00
.gitignore Password checker for FxA 2015-07-23 16:11:26 -07:00
.travis.yml chore(grunt): add grunt to repo 2015-07-30 16:30:25 -07:00
Gruntfile.js chore(build): move grunt tasks into separate files 2015-08-03 10:39:29 -07:00
README.md chore(readme): update readme file with usage 2015-08-16 12:13:45 +01:00
bower.json feat(data): Use the datasets from the OWASP SecList. 2015-08-17 10:30:05 -07:00
package.json cleanup(scripts): Lots of script cleanup. 2015-08-17 17:32:47 +01:00

README.md

Password strength checker for Firefox Accounts

Build Status

  • Maintains a bloom filter with list of common/leaked passwords
  • Checks for the presence of common passwords

Usage:

  • Create a new instance of the password checker, like so: var checkpassword = new PasswordCheck(options); where options can be:
    options: {
      minLength : integer, // minimum length of password, default 8
      noOfHashFunctions: integer // no of hash functions to use for the bloom filter, default 8
      // do not change noOfHashFunctions unless you also change it in the bloomfilter file.
    }
    
  • Call the checkpassword with a callback, like so:
    checkpassword(password, callback);