Пример #1
0
 private void ChangeCipherText()
 {
     try {
         textBox_CipherText.Text      = Base64Translator.EncryptBase64(textBox_ClearText.Text, GetSelectedEncoding());
         textBox_CipherText.IsEnabled = true;
     } catch (FormatException) {
         textBox_CipherText.Text      = "Invalid clear text.";
         textBox_CipherText.IsEnabled = false;
     }
 }