Hash HMAC - CSharp System.Security.Cryptography

CSharp examples for System.Security.Cryptography:HMACMD5

Description

Hash HMAC

Demo Code

/*/*from   w w w  . j ava 2s  . c om*/
Commerce Starter Kit for EPiServer

All rights reserved. See LICENSE.txt in project root.

Copyright (C) 2013-2014 Oxx AS
Copyright (C) 2013-2014 BV Network AS

*/
using System.Text;
using System.Security.Cryptography;
using System.Linq;
using System.Globalization;
using System.Collections.Generic;
using System;

public class Main{
        private static byte[] HashHMAC(byte[] key, byte[] message)
        {
            var hash = new HMACSHA256(key);
            return hash.ComputeHash(message);
        }
}

Related Tutorials