my algorithm looks like this:
$new_password = sha1($salt . $password . $email);
it works good, but Im trying to change to sha1 since ive heard its better but it wont work. Why is that?
register:
//generate a strong unique salt
$salt = uniqid(mt_rand());
$new_password = sha1($salt . $password . $email);
and then i rehash it when i log in