Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
Archivo: Form1.cs Proyecto: 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));
        }