PHP Classes

PHP Pass Manipulation Class: Generate and validate passwords using hashes

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: 126 All time: 9,419 This week: 560Up
Version License PHP version Categories
php-password 1.0MIT/X Consortium ...7.2Security, PHP 7


This class can generate and validate passwords using hashes.

It can generate a string with a random password that includes upper and lower case letters, digits and punctuation characters.

The class can also generate a hash of a given password and verify if a previously generated password is valid using the password hash.

Picture of Muhammad Umer Farooq
Name: Muhammad Umer Farooq is available for providing paid consulting. Contact Muhammad Umer Farooq .
Classes: 52 packages by
Country: Pakistan Pakistan
Age: 22
All time rank: 84411 in Pakistan Pakistan
Week rank: 280 Up6 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 6x



require_once 'classes/PasswordMAnipulation.php';

$pass = new PasswordMAnipulation();
$genPass = $pass->generatePassword();
$hashPass = $pass->hashPassword("!?HhLXN%B5.$@|_(x>,/#*+'*z\)^~:+/S-I<&j/");

var_dump($pass->hashMatched("!?HhLXN%B5.$@|_(x>,/#*+'*z\)^~:+/S-I<&j/", $hashPass));


PHP Password Manipulation Class

Manipulate password in several ways.


This class currently can.

  • Generate strong password
  • Encrypt using Argon2 algorithm
  • Verify password
  • Validate password

  Files folder image Files  
File Role Description
Files folder imageclasses (1 file)
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENCE Lic. License text
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  classes  
File Role Description
  Plain text file PasswordMAnipulation.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,419
This week:560Up