I am using PHPass and the CheckPassword function is ALWAYS returning a false despite everything I have tried and tested. I am doing this for an older PHP version of 5.3 (unfortunately) so there must be a nuance I am missing?
Password Database Table Field Collation is utf8_general_ci (tried unicode too) and varchar length is 62
Tried:
$hasher = new PasswordHash(8, false);
$hasher = new PasswordHash(30, false);
$hasher = new PasswordHash(8, true);
Using correct sytanx:
if ($hasher->CheckPassword($password, $stored_hash)) { ... }
The correct variable contents are being sent. Changed in both creation/register and checkpassword/login scripts as well as emptied database and retried each time. Any idea why I am unable to get a correct match beyond that I have already tried would be helpful. Thanks!