byte[] CreateHash(byte[] data)
{
   HashAlgorithm md5 = MD5.Create();
   return md5.ComputeHash(data);
}

Example 1: Hashing an array of bytes using the Framework cryptography namespace.

Back to Article