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); } } }
public string getPassword() { return(StringCipher.Decrypt(Password, FConstants.StringCipherKey)); }