Ejemplo n.º 1
0
        private static void HMacSha256Sample()
        {
            var s = "hello hmac sha256";
            var k = HMACSHA256.GeneratorKey();

            Console.WriteLine(Base64.ToBase64String(HMACSHA256.Compute(s, k)));

            Console.WriteLine(Base64.ToBase64String(HMACSHA256.Compute2(s, k)));
        }