title: SHA256 in Crypto++ library
body: <p>Let us focus on SHA256.</p>
  
  <p>According to the following website,
  <a href="http://www.fileformat.info/tool/hash.htm" rel="nofollow noreferrer">http://www.fileformat.info/tool/hash.htm</a>, the 'Binary hash' of 123 is 3d73c0...... and the 'String hash' of 123 is a665a4.......</p>
  
  <p>I can obtain the 'String hash' by using the library of crypto++ as the following code:</p>
  
  <pre><code>CryptoPP::SHA256 hash;
  string digest;
  CryptoPP::StringSource d1pk("123", true, new CryptoPP::HashFilter(hash, new HexEncoder(new CryptoPP::StringSink(digest))));
  
  cout&lt;&lt; "digest : " &lt;&lt; digest &lt;&lt;endl;
  </code></pre>
  
  <p>How can I obtain the 'Binary hash' by using the library of crypto++?</p>