What potential security vulnerability is present in the use of md5 for hashing passwords in the PHP code provided?

Using MD5 for hashing passwords in PHP is not secure because MD5 is considered a weak hashing algorithm that can be easily cracked using modern computing power. It is recommended to use stronger hashing algorithms like bcrypt or Argon2 for securely hashing passwords.

// Fix: Using bcrypt for hashing passwords
$password = "secretPassword";
$hashedPassword = password_hash($password, PASSWORD_BCRYPT);