title: Is sha512 safe for passwords
body: <p>I would like to hear if this is safe enough for storing passwords in a mysql DB.</p>
  
  <pre><code>&lt;?php
      $password=hash('sha512',$_POST['password']);
      //and then insert it into and mysql database
  ?&gt;
  </code></pre>
  
  <p>Is this safe? If not how could I do it more safe?</p>