This project can be used to validate Plain Text Passwords against Drupal Hashes.
docker-compose up
Code: public/index.php
- Instantiate the Password Checker:
require './PhpassHashedPassword.php'; $hasher = new PhpassHashedPassword(16);
- Use the user email to find the hash in database
$pass = '$$$'; // Password informed by user $hash = '$$$'; // Hash saved on database
- Pass informed passowrd and hash to the check function
$result = $hasher->check($pass, $hash);