Exemple #1
0
        private void decryptToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Playfair play = new Playfair();

            play.TextBoxValue    = "GLEHEGNSNSNPMKVCBUNDPOEUEGNXMGFREHMDNRFDCKRTCNNDRQISMORCRLEPSOEWCSCFFREHSJAREGNWNWGELMRNSJGEGWRKFEGFTMCREHSJAREGNALEKRNXNWMGGPEWIFGNOSNRRPSFGNSRHJRQIFGNONPQOMONMBNMCKTDKENSRNACOMMDJDPQDRRFRLDSGNOWWMSEENDSRKFEEGETNRRPRBSRMWMDGMFH";
            play.TextBox2Value   = "First Amendment";
            play.TextLbl2Value   = "Plain Text:";
            play.TextLbl1Value   = "Cipher Text: ";
            play.TextButtonValue = "Decrypt";
            play.Show();
        }
Exemple #2
0
        private void cypherToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Playfair play = new Playfair();

            play.TextBoxValue    = "Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the government for a redress of grievances.";
            play.TextBox2Value   = "First Amendment";
            play.TextLbl1Value   = "Plain Text:";
            play.TextLbl2Value   = "Cipher Text: ";
            play.TextButtonValue = "Encrypt";
            play.Show();
        }