Пример #1
0
 private void richTextBox_EncryptionEncrypted_TextChanged(object sender, EventArgs e)
 {
     if (richTextBox_EncryptionEncrypted.Focused)
     {
         richTextBox_EncryptionPlanText.Clear();
         if (comboBox_EncryptionMethod.SelectedIndex == 0)
         {
             richTextBox_EncryptionPlanText.Text = StringCipher.Decrypt(richTextBox_EncryptionEncrypted.Text, FConstants.StringCipherKey);
         }
         else if (comboBox_EncryptionMethod.SelectedIndex == 1)
         {
             richTextBox_EncryptionPlanText.Text = CeasarCipher.Decrypt(richTextBox_EncryptionEncrypted.Text);
         }
     }
 }
Пример #2
0
 public string getPassword()
 {
     return(StringCipher.Decrypt(Password, FConstants.StringCipherKey));
 }