I am trying to correctly execute a password hash in codeigniter using phpass. I added the hash of the phpass password file to the library folder in codeigniter, and now I don’t know how to write the instruction correctly $t_hasher = new PasswordHash(8, FALSE);? Can you guys help with the correct syntax? Here is what I still have:
function passwordTry()
{
$this->load->library('PasswordHash', 'null', 'passHash');
$hasher = new $this->passHash->PasswordHash(8, FALSE);
$hash = $hasher->HashPassword('abcd');
echo ($hash);
}
source
share