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 - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

11

lib/scoring.js

@@ -78,3 +78,3 @@ // Generated by CoffeeScript 1.10.0

most_guessable_match_sequence: function(password, matches, _exclude_additive) {
var backpointers, bf_i, bf_j, bf_match, candidate_product, candidate_score, consider_bruteforce, i, j, k, l, len, m, make_bruteforce_match, match, match_sequence, max_l, new_l, o, optimal_l, optimal_product, optimal_score, prev_j, prev_l, q, ref, ref1, ref2, ref3, ref4, ref5, ref6, score;
var backpointers, bf_i, bf_j, bf_match, candidate_product, candidate_score, consider_bruteforce, guesses, i, j, k, l, len, m, make_bruteforce_match, match, match_sequence, max_l, new_l, o, optimal_l, optimal_product, optimal_score, prev_j, prev_l, q, ref, ref1, ref2, ref3, ref4, ref5, ref6, score;
if (_exclude_additive == null) {

@@ -184,6 +184,11 @@ _exclude_additive = false;

match_sequence.reverse();
if (password.length === 0) {
guesses = 1;
} else {
guesses = optimal_score;
}
return {
password: password,
guesses: optimal_score,
guesses_log10: this.log10(optimal_score),
guesses: guesses,
guesses_log10: this.log10(guesses),
sequence: match_sequence

@@ -190,0 +195,0 @@ };

{
"name": "zxcvbn",
"version": "4.1.0",
"version": "4.1.1",
"description": "realistic password strength estimation",

@@ -5,0 +5,0 @@ "author": "Dan Wheeler",

@@ -125,3 +125,3 @@ ```

# Usage
``` javascript

@@ -162,3 +162,3 @@ zxcvbn(password, user_inputs=[])

# with friendlier display string values:
# "subsecond", "3 hours", "centuries", etc.
# "less than a second", "3 hours", "centuries", etc.

@@ -185,6 +185,4 @@ result.score # Integer from 0-4 (useful for implementing a strength bar)

result.suggestions
result.sequence # the list of patterns that zxcvbn based the
# entropy calculation on.
# guess calculation on.

@@ -197,2 +195,4 @@ result.calc_time # how long it took zxcvbn to calculate an answer,

[try zxcvbn interactively](https://dl.dropboxusercontent.com/u/209/zxcvbn/test/index.html) to see these docs in action.
# <a name="perf"></a>Performance

@@ -199,0 +199,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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