title: Generate sha256 with OpenSSL and C++
body: <p>I'm looking to create a hash with sha256 using openssl and C++. I know there's a similar post at <a href="https://stackoverflow.com/questions/918676/generate-sha-hash-in-openssl">Generate SHA hash in C++ using OpenSSL library</a>, but I'm looking to specifically create sha256.</p>
  
  <p>UPDATE: </p>
  
  <p>Seems to be a problem with the include paths. It can't find any OpenSSL functions even though I included </p>
  
  <pre><code>#include "openssl/sha.h"
  </code></pre>
  
  <p>and I included the paths in my build</p>
  
  <pre><code>-I/opt/ssl/include/ -L/opt/ssl/lib/ -lcrypto 
  </code></pre>