Skip to content

justdigital/drupal-password-hash-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal Password Hash System

This project can be used to validate Plain Text Passwords against Drupal Hashes.

Instalation

docker-compose up

Access

http://localhost:42000/

Code: public/index.php

How to implement in another system

  1. Instantiate the Password Checker:
    require './PhpassHashedPassword.php';
    $hasher = new PhpassHashedPassword(16);
  2. Use the user email to find the hash in database
    $pass = '$$$'; // Password informed by user
    $hash = '$$$'; // Hash saved on database
  3. Pass informed passowrd and hash to the check function
    $result = $hasher->check($pass, $hash);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published