2017 © Pedro Peláez
 

library zxcvbn-password-validator

Realistic Symfony password strength validator based on Zxcvbn PHP

image

locastic/zxcvbn-password-validator

Realistic Symfony password strength validator based on Zxcvbn PHP

  • Wednesday, July 18, 2018
  • by antonioperic
  • Repository
  • 5 Watchers
  • 0 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

ZxcvbnPasswordValidator

Realistic Symfony password strength validator based on Dropbox's zxcvbn project., (*1)

Overview

Zxcvbn-PHP is a password strength estimator using pattern matching and minimum entropy calculation. Zxcvbn-PHP is based on the Javascript zxcvbn project from Dropbox and @lowe. "zxcvbn" is bad password, just like "qwerty" and "123456"., (*2)

More info here., (*3)

zxcvbn attempts to give sound password advice through pattern matching and conservative entropy calculations. It finds 10k common passwords, common American names and surnames, common English words, and common patterns like dates, repeats (aaa), sequences (abcd), and QWERTY patterns., (*4)

This validator is based on library: Zxcvbn-PHP, (*5)

Installation

composer require locastic/zxcvbn-password-validator, (*6)

## Options, (*7)

You can use the Locastic\Component\ZxcvbnPasswordValidator\Validator\Constraints\ZxcvbnPasswordValidator constraint with the following options., (*8)

Option Type Description
message string The validation message (default: password_too_weak)
minEntropy float Desired minimal entropy value (password strength

## Annotations, (*9)

If you are using annotations for validation, include the constraints namespace:, (*10)

php use Locastic\Component\ZxcvbnPasswordValidator\Validator\Constraints as LocasticPassword;, (*11)

and then add the ZxcvbnPasswordValidator constraint to the relevant field:, (*12)

php /** * @LocasticPassword\ZxcvbnPasswordValidator(minEntropy=50) */ protected $password;, (*13)

## YAML yaml App\Entity\User: properties: password: - Locastic\Component\ZxcvbnPasswordValidator\Validator\Constraints\ZxcvbnPasswordValidator: minEntropy: 50, (*14)

## Support, (*15)

Need help at your project? Write us an email on info@locastic.com, (*16)

The Versions

18/07 2018

dev-master

9999999-dev

Realistic Symfony password strength validator based on Zxcvbn PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php validator symfony password dropbox zxcvb

18/07 2018

v1.3.1

1.3.1.0

Realistic Symfony password strength validator based on Zxcvbn PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php validator symfony password dropbox zxcvb

18/07 2018

v1.3

1.3.0.0

Realistic Symfony password strength validator based on Zxcvbn PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php validator symfony password dropbox zxcvb

18/07 2018

v1.2

1.2.0.0

Realistic Symfony password strength validator based on Zxcvbn PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php validator symfony password dropbox zxcvb

18/07 2018

v1.1

1.1.0.0

Realistic Symfony password strength validator based on Zxcvbn PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php validator symfony password dropbox zxcvb

18/07 2018

v1.0

1.0.0.0

Realistic Symfony password strength validator based on Zxcvbn PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

php validator symfony password dropbox zxcvb