private void btnCalculateHash_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "All files (*.*)|*.*"; if (openFileDialog.ShowDialog() != DialogResult.OK) { return; } byte[] firmwareData = File.ReadAllBytes(openFileDialog.FileName); HashInfo hashInfo = new HashInfo(0, 0x80000, string.Empty, new[] { new HashSkip(0xD2C9 + 0x1D, 48), new HashSkip(0x12346, 16), new HashSkip(0x13A31, 48), new HashSkip(0x14733, 1), new HashSkip(0x15577, 1), new HashSkip(0x260D8, 1507) }); MessageBox.Show(hashInfo.GetHash(firmwareData), "Firmware hash", MessageBoxButtons.OK, MessageBoxIcon.Information); }