title: Generating PHPass for Wordpress Passwords
body: <p>I am working on an application wnere I need to check for authenticity of user according to his wordpress userid/password. Trouble is, I don't know how to check whether a password is correct or not.</p>
  
  <p>I read at <a href="https://stackoverflow.com/questions/4750395/wordpress-md5-password">Wordpress MD5 Password</a> that after wordpress 2.5 phpass <a href="http://www.openwall.com/phpass/" rel="nofollow noreferrer">http://www.openwall.com/phpass/</a> was being used for wordpress passwords instead of MD5.</p>
  
  <p>Question is, If I have </p>
  
  <ol>
  <li>Username Password in plain text</li>
  <li>wordpress <strong>Authentication Unique Keys and Salts</strong> from <strong>wp-config.php</strong></li>
  <li>Database access</li>
  </ol>
  
  <p>then How can:
  1. I check whether user-name/password combination is correct.</p>
  
  <ol start="2">
  <li><p>Change password for user</p></li>
  <li><p>Implement forgot password implementation</p></li>
  </ol>
  
  <p>Wordpress version 3.0.4, Networked blogs being used with around 20 sites.</p>
  
  <p>I know I should be doing it with native wordpress functions, but in this case it is not an option due to nature of the Wordpress settings.</p>
  
  <p>I've spent over a week on this and still clueless! help would be appreciated.</p>