HOW-TO: Generate hash in windows store apps

This post shows how to generate hash using SHA1 algorithm in windows store apps, useful if your app makes calls to rest api’s that require app to pass an api signature as header or querystring   Import following namespaces  using Windows.Security.Cryptography;using Windows.Security.Cryptography.Core;using Windows.Storage.Streams;   Convert the string to binary   IBuffer buffer = CryptographicBuffer.ConvertStringToBinary(text, BinaryStringEncoding.Utf8);…