Is it possible to decrypt a password encrypted with md5 in PHP?

MD5 is a one-way hashing algorithm, meaning it is not possible to decrypt a password encrypted with MD5 directly. However, you can compare the hash of a user-entered password with the stored MD5 hash to verify if they match. To do this, you would hash the user-entered password using MD5 and compare it with the stored MD5 hash.

$stored_password = "5f4dcc3b5aa765d61d8327deb882cf99"; // Example MD5 hash of "password"
$user_password = "password";

$user_hash = md5($user_password);

if($user_hash === $stored_password) {
    echo "Password is correct!";
} else {
    echo "Password is incorrect!";
}