PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Pass Manipulation Class   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Pass Manipulation Class
Generate and validate passwords using hashes
Author: By
Last change:
Date: 5 years ago
Size: 377 bytes
 

Contents

Class file image Download
<?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));