I'm used to having hashing algorythms return always the same hash.
Why does phpass library return always different hashes?
Does it have something to do with the IV? (I never fully understood that concept)
<?php
require __DIR__ . '/PasswordHash.php';
$hasher = new PasswordHash(11,false);
$password = 'bla123';
echo $hash = $hasher->hashPassword($password); // different for each request
It uses crypt(), which already generates different hashes for the same string. It hashes each password with a different key, and it stores the key inside the hash (it's public).