Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     RH.MD5 obj = new RH.MD5();
     // button1.Text = obj.DigestStrToHexStr("Yahoo+Chien+1234");
     // button1.Text = obj.DigestStrToHexStr("Amazon+Wolfgang+1234");
     button1.Text = obj.DigestStrToHexStr("Ivy+Wolfgang+Bill");
 }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //string s = "Test Text";

            //RH.MD5 obj = new RH.MD5();
            //textBox1.Text = obj.DigestStrToHexStr(s);

            string sSource = textBox1.Text;

            RH.MD5 obj    = new RH.MD5(); //雜湊  // 事先註冊 VB6 形成的
            string result = obj.DigestStrToHexStr(sSource);

            textBox2.Text += result + Environment.NewLine;
        }