I'm currently building a web application and I have to store some passwords.
So I want to know what the securest way of hashing and storing passwords is!
My idea was
sha256($a+sha256($b+sha256($c+sha256(password))))
$c=random, unique salt --> which is stored into the database next to my password
$b=random String which is hard coded into my source code
$a=random String which I have to read from a file
The idea behind that is, that the attacker has to get access to my database, my source code, and my file-system which is pretty hard I think.
Is that secure? Do I hash everything to often? Is sha256 secure enough?
Thanks for your help!