Module: strengthChecker

Methods

(inner) strengthChecker(password, constraints) → {strengthCheckedPassword}

A that provides various form of information about a password such as the:

  • Bits of entropy calculated as E = l(log2(p)); where:
  • E = Entropy of the password,
  • l = Length of the password,
  • p = Is the number of Possibilities (number of possible characters).
  • Possible combinations for the password,
  • Binary string representation of the password,
  • Length of the binary string,
  • Average bit length of each character.
Parameters:
NameTypeDescription
passwordstring

The password to check the strength of.

constraintsstrengthCheckerConstraints

An object representing constraints the password was created under.

Source:
Requires:
Returns:

An object containing the strength checked password, its strength score, and the bit entropy of the password.

Type
strengthCheckedPassword