title: PHP7: Unknown hashing algorithm: sha256
body: <p>In PHP7, when I hash a string like this:</p>
  
  <pre><code>$hash = hash("sha256", "password");
  </code></pre>
  
  <p>I have this warning:</p>
  
  <pre><code>Unknown hashing algorithm: sha256
  </code></pre>
  
  <p>In PHP 5.2.9, it was working. Is the sha256 deprecated in php7? Other idea?</p>
  
  <p>Notes</p>
  
  <ul>
  <li>the extension "php_openssl.dll" is enabled.</li>
  <li>hash("sha512", "password");  // WORKS !</li>
  <li><p><code>print_r( hash_algos() );</code></p>
  
  <p><code>[0] =&gt; md2 [1] =&gt; md4 [2] =&gt; md5 [3] =&gt; sha1 [4] =&gt; sha224 [5] =&gt; sha256 
  [6] =&gt; sha384 [7] =&gt; sha512 ...</code></p></li>
  </ul>