CSharp examples for System.Security.Cryptography:HMACMD5
Computes the HMAC-MD5 for the key and bytes.
using System.Security.Cryptography; using System;/*w w w . j a va2 s. co m*/ public class Main{ /// <summary> /// Computes the HMAC-MD5 for the key and bytes. /// </summary> public static Byte[] ComputeHMAC(Byte[] key, Byte[] bytes) { HMACMD5 hmac = new HMACMD5(key); return hmac.ComputeHash(bytes); } }