I think I'm missing something critical here. In the CPasswordHelper::hashPassword function we have lines:
$salt=self::generateSalt($cost);
$hash=crypt($password,$salt);
return $hash;
And in the CPasswordHelper::verifyPassword there is this line:
$test=crypt($password,$hash);
return self::same($test, $hash);
What about the salt? To my understanding its not even beeing kept, but it doesn't make any sense, so I'm guessing I didn't understand it completely.