I am making a login system in PHP and I was wondering if this current hash function I have is secure enough.
public function genHash( $user, $pass )
{
    $user = strtoupper($user);
    $staticSalt  = $this->staticSalt;
    $dynamicSalt = hash('SHA512', md5($user . $pass) . sha1($pass) . hash('SHA512', $user . $pass));
    $final       = hash('WHIRLPOOL', $pass . $dynamicSalt . $staticSalt);
    return $final;
}
The static salt is just a bunch of random characters. Anyway, how can I make it more secure?
 
     
    