so i have a login system and i have used some security measures to make it secure. Firstly i salt my passwords:
$salt = openssl_random_pseudo_bytes(1024);
file_put_contents("salt.txt", $salt);
Next i hash it using the whirlpool algorithm:
function myhash($password){
$salt = file_get_contents("private/salt.txt");
$password = hash_hmac('whirlpool',$password,$salt);
return $password;
}
This is an example of the password that would get returned and stored in the Database:
56a8cf545750eec78cb58582829636b1e0378cf0fff4982305a7171f06593fb92735d3576f0ad7ba8aec40c914abc38424885cb7ac2672b1d8da36e3b95c80ce
Now my question: If a hacker was able to recover that long string above, would they be able to somehow reverse/decrypt it to return them the actual password. Let me know what you guys think/know, is it impossible?
This is not a thread for people to suggest other things to me, please keep answers strictly related to the single question.