BoxKite.Twitter.WinUWPPlatformAdaptor.ComputeHash C# (CSharp) Method

ComputeHash() public method

public ComputeHash ( byte buffer ) : byte[]
buffer byte
return byte[]
        public byte[] ComputeHash(byte[] buffer)
        {
            var crypt = MacAlgorithmProvider.OpenAlgorithm("HMAC_SHA1");
            var sigBuffer = CryptographicEngine.Sign(crypt.CreateKey(CryptographicBuffer.CreateFromByteArray(hmackey)), CryptographicBuffer.CreateFromByteArray(buffer));
            return sigBuffer.ToArray();
        }
    }