Example #1
0
        private void bEncrypt_Click(object sender, EventArgs e)
        {
            if (rbPlainText.Checked)
            {
                cypherMachine = new PlainText();
            }
            else
            {
                cypherMachine = new Rot13();
            }

            lbEncryptedOutput.Items.Add(cypherMachine.Encrypt(tbUserInput.Text));
        }
Example #2
0
File: Form1.cs Project: rNdm74/C-
        private void bEncrypt_Click(object sender, EventArgs e)
        {
            if (rbPlainText.Checked)
            {
                cypherMachine = new PlainText();
            }
            else
            {
                cypherMachine = new Rot13();
            }

            lbEncryptedOutput.Items.Add(cypherMachine.Encrypt(tbUserInput.Text));
        }