PHP Classes

PHP Pass Manipulation Class: Generate and validate passwords using hashes

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 126 All time: 9,431 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 <contact>
Classes: 52 packages by
Country: Pakistan Pakistan
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 (4)  
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 (4)  /  classes  
File Role Description
  Plain text file PasswordMAnipulation.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:126
This week:0
All time:9,431
This week:560Up