Hi buddies
I tried to make an md5 function more secure by iterating with a loop several times
function:
[php]
function pwhash($password,$iterations = 13)
{
$hash =md5($password);
for ($i = 0; $i < $iterations; ++$i)
{
$hash = md5($hash.$password);
return $hash;
}
}
[/php]
to call it:
[php]
echo pwhash(“mypassword”,9);
[/php]
the problem is no matter what number I put for the secord parameter the function return the same result.
any Idea?