I have this code:
...
   private void bBrowse_Click(object sender, EventArgs e)
    {
    OpenFileDialog ofd = new OpenFileDialog();
        if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                string FileName = ofd.FileName;
                tbKeyFile.Text = FileName;
            }
        if (!String.IsNullOrEmpty(tbKeyFile.Text))
        {
            FileStream fs = new FileStream(tbKeyFile.Text, FileMode.Open);
            MD5 hashFunction = MD5.Create();
            byte[] computedHashCode = hashFunction.ComputeHash(fs);
            string HashInString = Convert.ToBase64String(computedHashCode);
            lHash.Text = HashInString;
         }
    }
...
But it's not calculating a md5 hash. It's calculating a SHA1 checksum. What do I do wrong ?