예제 #1
0
        public void TestComputeHmac512()
        {
            string expected = "ec96b3362e4cfceba4f0b88b4db239a31377d1529d74323844de3aa310e819846c6859f7cce104ce26e62580ae05ae95dcd62d442fc23c2aac1fb32b8332b442";       //comparing with result produced at https://codebeautify.org/hmac-generator

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

            Assert.AreEqual(expected, hashStr);
        }