Пример #1
0
 // Function for updating all the boxes because im lazy ;)
 public void Update()
 {
     if (encryptBox.Checked == true)
     {
         textBox2.Text = EpcryptCMD.Encrypt(passwordBox.Text, textBox1.Text, false);
     }
     else
     {
         textBox2.Text = EpcryptCMD.Decrypt(passwordBox.Text, textBox1.Text, false);
     }
 }
Пример #2
0
 private void encryptDecryptFile_Click(object sender, EventArgs e)
 {
     doneLabel.Text = "";
     // Adding a delay so that you can see that the program is actually responding by changing the text
     System.Threading.Thread.Sleep(2000);
     if (encryptBox.Checked == true)
     {
         EpcryptCMD.EncryptFile(passwordBox.Text, filepath, false);
     }
     else
     {
         EpcryptCMD.DecryptFile(passwordBox.Text, filepath, false);
     }
     doneLabel.Text = "Done!";
 }