friartuck6000 / phpass
A Composer-friendly PHPass port
v0.3.0
2016-02-17 04:30 UTC
Requires
None
Requires (Dev)
- phpunit/phpunit: ^5.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-05 04:41:27 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!'); }