#PHP #course #tutorial
// hashing = transforming sensitive data (password)
// into letters, numbers, and/or symbols
// via a mathematical process. (similar to encryption)
// Hides the original data from 3rd parties.
$password = "pizza123";
$hash = password_hash($password, PASSWORD_DEFAULT);
if(password_verify("hamburger666", $hash)){
echo"You are logged in!";
}
else{
echo"Incorrect password!";
}
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.