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

Author

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: 84611 in Pakistan Pakistan
Week rank: 52 Up3 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 6x

Example

<?php


require_once 'classes/PasswordMAnipulation.php';

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

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


Details

PHP Password Manipulation Class

Manipulate password in several ways.

Feature

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 readme.md 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  
 100%
Total:126
This week:1
All time:9,407
This week:560Up