title: With PHP, why do we use crypt() for password hashing instead of hash()?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10281373/hash-vs-crypt-function-comparison">hash() vs. crypt() function comparison</a>  </p>
  </blockquote>
  
  
  
  <p>Recently I researched how to properly do password hashing in PHP. One of the better options is to use <code>crypt()</code>. But why wouldn't we use <code>hash()</code>?</p>
  
  <p>The main reason I am asking this is because I made a password hashing function that wraps <code>crypt()</code> and I am wondering what to name my function. Right now it's named <code>getHash()</code>. But I feel funny using that name since I am wrapping <code>crypt()</code>. If I use <code>getCrypt()</code> that doesn't sound great either because it's meant to be a HASHING function. What should I name my hashing function that wraps <code>crypt()</code>?</p>