Hi All,
Sincere apologies for taking so long to reply. Life’s been busy.
Thank you for the code @underdigital. The integration mentioned above is quite custom for each user.
Things that change for each user are:
how salt is handled (in your case salt is added to the beginning of the password)
To make this reusable I am going to add functionality to allow something like the custom function to be called from a plugin hook.
I am midway through developing this code already.
You as the user would need to add code similar to this to your functions.php file.
function myExlogHashAuthenticator($password, $hashFromDatabase, $username) {
$iterations = 10000;
$length = 40;
$salt = $passwordSalt . $username;
$hash = hash_pbkdf2("sha1", $password, $salt, $iterations, $length);
$hash = \strtoupper($hash);
return $hash == $hashFromDatabase;
}
add_filter('exlog_hook_filter_authenticate_hash', 'myExlogHashAuthenticator', 10, 2);
Let me know if any of you have any hesitations about this but my plan is to get this out as the next release.
Tom