Hashing Password
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3191690/password-hashing">password hashing</a>  </p>
</blockquote>



<p>What is the best practice to hash the password?</p>

<p>I did the following:</p>

<pre><code>$salt = 12345;
$hash = hash("sha256", $_POST['password'] . $salt);
</code></pre>

<p>Is there a better solution and secure?</p>
