title: Obtain SHA-256 string of a string
body: <p>I have some <code>string</code> and I want to <em>hash</em> it with the <strong>SHA-256</strong> hash function using C#. I want something like this:</p>
  
  <pre><code> string hashString = sha256_hash("samplestring");
  </code></pre>
  
  <p>Is there something built into the framework to do this?</p>