title: How can we Hash a Symmetric Cryptographic Key for Windows Store Apps?
body: <p>The hashing technique present for Windows.Security Library is as follows.</p>
  
  <pre><code>HashAlgorithmProvider Hash_Sha256 = HashAlgorithmProvider.OpenAlgorithm(HashAlgorithmNames.Sha256);
  IBuffer HashedDerivedKey = Hash_Sha256.HashData(DerivedPrimaryKey);
  </code></pre>
  
  <p>Is there a possibility where I can directly hash a Symmetric Cryptographic Key.</p>
  
  <p>That is, directly hash the 'key' as mentioned below.</p>
  
  <pre><code>CryptographicKey key = aesCbcPkcs7.CreateSymmetricKey(CryptographicBuffer.GenerateRandom(32));
  </code></pre>