So basically i am taking a course of web development where the tutor said we need to hash the password before storing it in mysql so that hackers cannot decode it.
the way we do it is
$hashedPassword = password_hash ("myPassword", PASSWORD_DEFAULT);
and to decode while on the login form we use
password_verify("somePassword", $hashedPassword);
so my question is, if someone hacks into my mysql database and steals the hashed password, wont he also be able to decode it ? is it safe to use to make a website login ?