title: How secure is encryption for passwords with crypt() in PHP?
body: <p>I'm using <code>crypt()</code> encryption in PHP like this:</p>
  
  <pre><code>&lt;?php
  $password = sanitizing_func($_POST['password']);
  $var = crypt($password, 'ab');
  ?&gt;
  </code></pre>
  
  <p>How Secure is this?</p>
  
  <p>Found a better solution here: <a href="http://www.openwall.com/phpass/" rel="nofollow noreferrer">openwall phpass</a></p>
  
  <p>Thanks to <a href="https://stackoverflow.com/users/729881/edward-thomson">Edward Thomson</a></p>