Zxcvbn
in package
The main entry point.
Tags
Table of Contents
Properties
- $feedback : mixed
- $matcher : mixed
- $scorer : mixed
- $timeEstimator : mixed
Methods
- __construct() : mixed
- addMatcher() : self
- passwordStrength() : array<string|int, mixed>
- Calculate password strength via non-overlapping minimum entropy patterns.
Properties
$feedback
protected
mixed
$feedback
Tags
$matcher
protected
mixed
$matcher
Tags
$scorer
protected
mixed
$scorer
Tags
$timeEstimator
protected
mixed
$timeEstimator
Tags
Methods
__construct()
public
__construct() : mixed
addMatcher()
public
addMatcher(string $className) : self
Parameters
- $className : string
Return values
selfpasswordStrength()
Calculate password strength via non-overlapping minimum entropy patterns.
public
passwordStrength(string $password[, array<string|int, mixed> $userInputs = [] ]) : array<string|int, mixed>
Parameters
- $password : string
-
Password to measure
- $userInputs : array<string|int, mixed> = []
-
Optional user inputs
Return values
array<string|int, mixed> —Strength result array with keys: password entropy match_sequence score