title: Convert wordpress password to BCrypt-based
body: <p>I have an old project which is using Wordpress, currently we create a new project and need to migrate the user's data into the new database (also Mysql). </p>
  
  <p>The new database is using Bcrypt for encoding password for users. The old encode type in wordpress is like:</p>
  
  <pre><code>$P$BdsGKKQnnH6mi9hznpibst1jl/6G4z1
  </code></pre>
  
  <p>I think it might be MD5-based or not. I looked this link: <code>http://stackoverflow.com/questions/1045988/what-type-of-hash-does-wordpress-use</code></p>
  
  <p>I want to find a way to convert this type of password to Bcrypt-based. Maybe mysql script could help me convert? Can anyone give me some suggestions? Thanks.</p>