What are the potential security risks of using md5 for password hashing in PHP?
Using md5 for password hashing in PHP is not recommended as it is considered insecure due to its vulnerability to collision attacks. To improve security, it is recommended to use stronger hashing algorithms like bcrypt or Argon2.
// Using bcrypt for password hashing in PHP
$password = "password123";
$hashed_password = password_hash($password, PASSWORD_BCRYPT);