Hashing and password_verify
I'm working with my little PHP project and I'm trying to implement hashing on registration and I need to verify my hashed password when user want to log in. I tried a lot but I don't really get how I could use password_verify function in my code. In my registration.php I have a code: $username = $_POST['username']; $password = password_hash($_POST['password'], PASSWORD_DEFAULT); $email = $_POST['email']; My login.php file looks like this: $username = $_POST['username']; $password = $_POST['password']; $username = htmlentities($username, ENT_QUOTES, "utf-8"); $password = htmlentities($password,