PHP Classes
elePHPant
Icontem

File: example/index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq  >  PHP Argon2 Password Verify  >  example/index.php  >  Download  
File: example/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Argon2 Password Verify
Generate and verify hashed passwords using Argon2
Author: By
Last change:
Date: 7 months ago
Size: 321 bytes
 

 

Contents

Class file image Download
<?php
   
use Lablnet\Hashing;
    require
'../vendor/autoload.php';
   
   
$hashing = new Hashing();
   
   
//Original password
   
$password = 123456;
   
//Password Hash
   
$password_hash = $hashing->make($password);
    echo
$password_hash;
    echo
"<br>";
   
//Verify
   
$verify = $hashing->verify($password,$password_hash);
   
var_dump($verify);