MD5 Compute Hash - CSharp System.Security.Cryptography

CSharp examples for System.Security.Cryptography:MD5

Description

MD5 Compute Hash

Demo Code


using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from   w  w w .  ja  v a  2s .c o m

public class Main{
        public static byte[] MD5ComputeHash(this byte[] data)
        {
            return System.Security.Cryptography.MD5.Create().ComputeHash(data);
        }
}

Related Tutorials