Exemple #1
0
        private void button8_Click(object sender, EventArgs e)//MD5文字
        {
            string MD5_Message = richTextBox10.Text.Trim();

            if (MD5_Message == "")
            {
                textBox4.Text = ""; return;
            }
            bool MD5_Mode = radioButton11.Checked;

            textBox4.Text = MyMD5.GetMD5Hash(MD5_Message, MD5_Mode);
        }
Exemple #2
0
        private void button9_Click(object sender, EventArgs e)//MD5文件
        {
            string FilePath = textBox3.Text.Trim();

            if (FilePath == null || FilePath == "")
            {
                return;
            }
            if (File.Exists(FilePath) != true)
            {
                MessageBox.Show("文件不存在");
                return;
            }
            bool MD5_Mode = radioButton11.Checked;

            textBox4.Text = MyMD5.GetMD5HashFromFile(FilePath, MD5_Mode);
        }