예제 #1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            string  plain  = textBox1.Text;
            string  key    = textBox2.Text;
            DESalgo k      = new DESalgo();
            string  cipher = k.DesEncrypttion(key, plain);

            textBox3.Text = cipher;
        }
예제 #2
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            string  cipher = textBox1.Text;
            string  key    = textBox2.Text;
            DESalgo k      = new DESalgo();
            string  plain  = k.DesDecryption(key, cipher);

            textBox3.Text = plain;
        }