How can I compare my PHPASS-hashed stored password to my incoming POST data?
<p>Here's a better example, just a simple checking..stored value in database has password: fafa (hashed with phpass in registration) and username: fafa; i am using the phpass password hashing framework</p>

<pre><code>public function demoHash($data) //$data is the post data named password
{

 $hash =new PasswordHash(8, false);
 $query = ORM::factory('user');
 $result = $query
  -&gt;select('username, password')
  -&gt;where('username', 'fafa')
  -&gt;find();
 $hashed = $hash-&gt;HashPassword($data);
 $check = $hash-&gt;CheckPassword($hashed, $result-&gt;password);
 echo $result-&gt;username . "&lt;br/&gt;";
 echo $result-&gt;password . "&lt;br/&gt;";
 return $check;
}
</code></pre>

<p>check is returning false</p>
