Ejemplo n.º 1
0
 public function testEntropy()
 {
     $password = '******';
     $matches = DigitMatch::match($password);
     $this->assertEquals(log(pow(10, 3), 2), $matches[0]->getEntropy());
 }
Ejemplo n.º 2
0
 /**
  * Match occurences of 3 or more digits in a password
  *
  * @copydoc Match::match()
  */
 public static function match($password, array $userInputs = array())
 {
     return ZxcvbnDigitMatch::match($password, $userInputs);
 }