byte[] imgByte = File.ReadAllBytes(fileName);
MD5 md5 = new MD5CrypyoServiceProvider();
byte[] result = md5.ComputeHash(imgByte);
StringBuilder stringBuilder = new StringBuilder();
for(int i=0;i<result.Length;i++)
{
stringbuilder.Addend(result[i].ToString("X2"));
}