Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including zxcvbn-cli-json with all npm packages installed. Try it out:

var zxcvbnCliJson = require("zxcvbn-cli-json")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

zxcvbn-cli-json v1.0.9

A CLI for zxcvbn (Dropbox's realistic password strength estimator).

_________________________________________________/\/\_______________________/\/\/\/\___/\/\______/\/\/\/\__
_/\/\/\/\/\__/\/\__/\/\____/\/\/\/\__/\/\__/\/\__/\/\________/\/\/\/\_____/\/\_________/\/\________/\/\____
_____/\/\______/\/\/\____/\/\________/\/\__/\/\__/\/\/\/\____/\/\__/\/\___/\/\_________/\/\________/\/\____
___/\/\________/\/\/\____/\/\__________/\/\/\____/\/\__/\/\__/\/\__/\/\___/\/\_________/\/\/\/\____/\/\____
_/\/\/\/\/\__/\/\__/\/\____/\/\/\/\______/\______/\/\/\/\____/\/\__/\/\_____/\/\/\/\___/\/\/\/\__/\/\/\/\__
___________________________________________________________________________________________________________

npm version Dependency Status Build Status

A CLI for zxcvbn (Dropbox's realistic password strength estimator).

About zxcvbn

zxcvbn is a password strength estimator inspired by password crackers. Through pattern matching and conservative entropy calculations, it recognizes and weighs 30k common passwords, common names and surnames according to US census data, popular English words from Wikipedia and US television and movies, and other common patterns like dates, repeats (aaa), sequences (abcd), keyboard patterns (qwertyuiop), and l33t speak.

Visit the official repository for more details.

NOTE: This version of zxcvbn-cli is a fork. This contains some additional code that you may or may not want. Use at your own risk.

Installation

$ [sudo] npm install -g zxcvbn-cli-json

Usage

Typing zxcvbn --help will list all the available options.

$ zxcvbn --help
Usage: zxcvbn [options] <password> [userdata]

A realistic password strength estimator.

Options:
  -V, --version          output the version number
  -j, --json             json-encode zxcvbn results and output directly
  -l, --limit-results    display the password score, a warning (if any), and suggestions (if any)
  -S, --sequence         display match sequence along with the results
  -s, --crack-times-sec  display crack time estimations in seconds
  --no-color             disable color support
  -h, --help             output usage information
  ...

Notes:

  • Consider adding an alias for this command in your bash_profile if you are having trouble typing it.
  • Make sure to surround your password in quotes if it contains special characters.

License

MIT © Gabriel Montalvo

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free