コード例 #1
0
        private void Decrypt_Click(object sender, RoutedEventArgs e)
        {
            string textToDecrypt   = UserTextToDecrypt.Text;
            string DecryptedString = StringCrypter.Decrypt(textToDecrypt, UserPassWord.Text);

            DecryptedText.Text = DecryptedString;
        }
コード例 #2
0
        private void Encrypt_Click(object sender, RoutedEventArgs e)
        {
            string textToEncrypt   = UserTextToEncrypt.Text;
            string encryptedString = StringCrypter.Encrypt(textToEncrypt, UserPassWord.Text);

            EncryptedText.Text = encryptedString;
        }