title: Has the hash password function changed in magento? If so, to what?
body: <p>I am using magento version 1.9.0.1.</p>
  
  <p>For switching to magento purposes I need to create a login function for customers outside the magento framework.</p>
  
  <p>I have looked up the method magento uses to hash and validate passwords, but the method doesn't seem to work anymore.</p>
  
  <p>Below the code I use to validate a user login outside magento. This code is just to try proof of concept and is not being used in a live environment for obvious reasons :).</p>
  
  <pre><code>function checkPassword($entity,$passwordInput){
      $query = mysql_query("SELECT value FROM customer_entity_varchar WHERE entity_id = '$entity' AND attribute_id = '12' LIMIT 1");
      $fetch = mysql_fetch_object($query);
      $fetch_data = explode(':',$fetch-&gt;value);
      $hashed_password = $fetch_data['0'];
      $salt = $fetch_data['1'];
  
      $hashInput = md5($passwordInput . $salt);
      if($hashInput == $hashed_password){
          return 'Success';
      }
      else{
          return 'Failure';
      }
  }
  </code></pre>
  
  <p><code>$entity</code> is the entity_id passed after email validation,</p>
  
  <p><code>$passwordInput</code> is the password entered in the login form.</p>
  
  <p>It returns Failure. Which I'm not surprised about because when I return <code>$hashInput</code> and compare it with <code>$hashed_password</code> it's not the same. </p>
  
  <p>Has the way Magento hashes passwords been changed? Or is there a mistake in my code?</p>