title: Updating md5 passwords with the php password_hash function
body: <p>I have a database with accounts that still use the MD5 algorithm which is old and unsafe, so I wanted to update the passwords with the password_hash function in php.</p>
  
  <p>I made a login for users with a md5 password so they can be prompted with an update field to update their password. It all works and I see the new hash string in the database. But when I want to login using their new password it's just not possible. </p>
  
  <p>I use a PDO update query to update the passwords, does anyone have a solution or know if this is even possible?</p>
  
  <p>Thanks in advance,
  Bram.</p>
  
  <p>EDIT:</p>
  
  <p>This is the code I use to verify the passwords.</p>
  
  <pre><code>if (password_verify($password, $rowofusers['passwordhere'])) {
         //code here
        }
  </code></pre>