コード例 #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));
 }