title: Best way encrypt password php (in 2017)
body: <p>In my website I use <code>md5</code> to crypt password user in my database (and store session user)</p>
  
  <pre><code>$pswUser = md5($_POST["password"]);
  </code></pre>
  
  <p>But I have just been told that this way of encrypting has become obsolete</p>
  
  <p>I did some research to find out how to do it but most of the posts dates from two or three years ago
  So what is the best way to encrypt password in 2017 ?</p>
  
  <p>Thank you</p>
  
  <p>Isn't duplicate discussion ...
  <a href="https://stackoverflow.com/questions/401656/secure-hash-and-salt-for-php-passwords">Secure hash and salt for PHP passwords</a> => 2009 ...</p>