Exemple #1
0
        public void TestComputeHmac384()
        {
            string expected = "6f84d499690d0b91bdbef5d8c05b6750cc0590dfc1ab046327c96d3c05cb1fde02017ef673fbd767db8500fad18b1a74";       //comparing with result produced at https://codebeautify.org/hmac-generator

            byte[] bhashStr = encryptionService.ComputeHmacsha384(bdata, bkey);
            string hashStr  = ByteArrayToString(bhashStr);

            Assert.AreEqual(expected, hashStr);
        }