Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zxcvbn

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zxcvbn

realistic password strength estimation

  • 4.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
460K
decreased by-16.09%
Maintainers
1
Weekly downloads
 
Created

What is zxcvbn?

zxcvbn is a password strength estimator inspired by password crackers. It is designed to evaluate the strength of passwords and provide feedback and suggestions for improving them. The library uses a large list of common passwords, common names, and other patterns to estimate how long it would take to crack a given password.

What are zxcvbn's main functionalities?

Password Strength Estimation

This feature allows you to estimate the strength of a password. The score ranges from 0 (very weak) to 4 (very strong).

const zxcvbn = require('zxcvbn');
const result = zxcvbn('password123');
console.log(result.score); // Outputs a score from 0 to 4

Feedback and Suggestions

This feature provides feedback and suggestions for improving the password based on its analysis.

const zxcvbn = require('zxcvbn');
const result = zxcvbn('password123');
console.log(result.feedback); // Outputs feedback and suggestions for improving the password

Time to Crack Estimation

This feature estimates the time it would take to crack the password using different attack scenarios, such as online guessing or offline attacks.

const zxcvbn = require('zxcvbn');
const result = zxcvbn('password123');
console.log(result.crack_times_display); // Outputs an object with various time estimates for cracking the password

Other packages similar to zxcvbn

Keywords

FAQs

Package last updated on 07 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc