friartuck6000 / phpass
A Composer-friendly PHPass port
Installs: 465
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/friartuck6000/phpass
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is not auto-updated.
Last update: 2025-10-03 23:57:53 UTC
README
A delicately modified port of the original PHPass hashing framework, made Composer-friendly.
Installation
composer install friartuck6000/phpass
Usage
use Phpass\PasswordHash; $hasher = new PasswordHash(8, false); // Generate a hash $hash = $hasher->HashPassword('abc12345'); // Check a hash if (!$hasher->CheckPassword('abc12345', $hash)) { die('Incorrect password!'); }