PHP Classes

PHP Check Password Complexity: Check a password's complexity to get its strength

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 116 This week: 1All time: 9,536 This week: 560Up
Version License PHP version Categories
phpcheckpasswordforc 1.0GNU General Publi...5PHP 5, Validation, Security
Description 

Author

This class can check a password's complexity to get its strength.

It can take as a parameter a string with a password value to perform several checks to verify if it complies with several rules that make it be considered more secure due to its complexity.

The class returns a success string if the password passes the verification of all complexity rules that it supports. Currently, it can check if:

- Its length is at least the minimum number of characters
- It has numbers
- It has lower case characters
- It has upper case characters
- It has special characters

Picture of Hassane Moussa
  Performance   Level  
Name: Hassane Moussa <contact>
Classes: 10 packages by
Country: Niger Niger
Age: 40
All time rank: 21481 in Niger Niger
Week rank: 106 Up1 in Niger Niger Equal
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Example

<?php
/***************************************************************************************
            Example Using Class CheckPasswordForce
***************************************************************************************/

 
require_once 'CheckPasswordForce.php';


$checkPasswordForce = new CheckPasswordForce();

$pwd = "1Php@Class";

echo
$checkPasswordForce->checkStrongPassword($pwd);


Details

PHP Check Password Force

This simple PHP class can check password strength policies. The class can check enforce password length rules, the use of upper and lower case letters, numbers and special characters.

This class can validate password with criteria.

PHP 5 or newer

@Author : Hassane Moussa

@From Africa / Niamey-Niger

@License GPL


  Files folder image Files  
File Role Description
Plain text file CheckPasswordForce.php Class Class source
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:116
This week:1
All time:9,536
This week:560Up