Check whether a password is common
Перейти к файлу
dependabot[bot] 4979a8107b
chore(deps): bump lodash from 4.17.14 to 4.17.19 (#16)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.14 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.14...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-16 14:09:13 -04:00
scripts fix(passwords): No more false positives! 2019-10-03 17:06:17 +01:00
source_data Initial checkin 2018-06-11 10:21:42 -07:00
src fix(passwords): No more false positives! 2019-10-03 17:06:17 +01:00
tests fix(passwords): No more false positives! 2019-10-03 17:06:17 +01:00
.eslintignore chore: Prepare for the initial release. 2018-06-12 06:10:12 -07:00
.eslintrc Initial checkin 2018-06-11 10:21:42 -07:00
.gitignore chore: Prepare for the initial release. 2018-06-12 06:10:12 -07:00
.npmrc feat(release): Better version release support via `npm version` 2018-06-13 06:56:42 -07:00
.travis.yml chore: Prepare for the initial release. 2018-06-12 06:10:12 -07:00
CHANGELOG.md chore(release): v0.0.4 2019-10-03 17:15:29 +01:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file 2019-03-30 00:11:09 -07:00
README.md fix(passwords): No more false positives! 2019-10-03 17:06:17 +01:00
package-lock.json chore(deps): bump lodash from 4.17.14 to 4.17.19 (#16) 2020-07-16 14:09:13 -04:00
package.json chore(release): v0.0.4 2019-10-03 17:15:29 +01:00

README.md

fxa-common-password-list

Check whether a password is common.

Installation:

npm install fxa-common-password-list

Usage:

const commonPassworList = require('fxa-common-password-list');

// returns true
commonPassworList.test('password');

// returns false
commonPasswordList.test('@!#^GDSAQ@#^Q#@^$YAESFDAS');

Tagging a release

One command to do it all:

npm version <version>

  • Creates a release branch
  • Updates version number in package.json, package-lock.json
  • Updates CHANGELOG.md
  • Commits changes
  • Creates a tag
  • Pushes release branch and tag to origin

Generating password list

A new encoded password list can be created

node scripts/generate-encoded-passwords-module.js ./source_data/10_million_password_list_top_1M.txt ./src/encoded-passwords.js 50000 8

License:

MPL-2.0