Exemplo n.º 1
0
 public function testEntropy()
 {
     $password = '******';
     $matches = DictionaryMatch::match($password);
     // Match 0 is "pass" with rank 35.
     $this->assertEquals(log(35, 2), $matches[0]->getEntropy());
 }
Exemplo n.º 2
0
 /**
  * @return float
  */
 public function getEntropy()
 {
     return parent::getEntropy() + $this->l33tEntropy();
 }
 /**
  * Match occurences of dictionary words in password.
  *
  * @copydoc Match::match()
  */
 public static function match($password, array $userInputs = array())
 {
     return ZxcvbnDictionaryMatch::match($password, $userInputs);
 }