2017 © Pedro Peláez
 

library pwdcheck

A password complexity validator

image

psecio/pwdcheck

A password complexity validator

  • Saturday, February 28, 2015
  • by enygma
  • Repository
  • 4 Watchers
  • 20 Stars
  • 97 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

Packagist Version Build Status, (*1)

The Pwdcheck tool uses the Wolfram Alpha method for estimating the strength of a password. It goes through a set of several checks to give the password a "score":, (*2)

  • 0-60: Very Weak
  • 60-70: Weak
  • 70-80: Fair
  • 80-90: Strong
  • 90-100: Very Strong

Installation

You can use Composer to install Pwdcheck:, (*3)

{
    "require": {
        "psecio/pwdcheck": "1.*"
    }
}

Usage

Usage of the tool is simple and you can either fetch the text version of the strength (ex. "Very Weak") or a numeric representation from zero through four:, (*4)

<?php
require_once 'vendor/autoload.php';

$p = new \Psecio\Pwdcheck\Password();
$p->evaluate($password);

// getting the numeric representation:
echo 'Strength: '.$p->getStrength()."\n";

// getting the text version:
echo 'Strength: '.$p->getStrength(true)."\n";

// you can also get the raw score either as a return value or using getScore
$result = $p->evaluate($password);
echo 'Score: '.$result."\n"

echo 'Score: '.$p->getScore()."\n";

The Versions

28/02 2015

dev-master

9999999-dev https://github.com/psecio/pwdcheck.git

A password complexity validator

  Sources   Download

MIT

The Requires

 

password validate complexity entropy

04/01 2014

1.0

1.0.0.0 https://github.com/psecio/pwdcheck.git

A password complexity validator

  Sources   Download

MIT

The Requires

 

password validate complexity entropy