Example #1
0
        private void Base64DecodeButton_Click(object sender, RoutedEventArgs e)
        {
            string base64EncodedData = RtbManipulate.ToOneString(true);

            var    plainTextBytes = System.Convert.FromBase64String(base64EncodedData);
            string decodedString  = System.Text.Encoding.UTF8.GetString(plainTextBytes);

            RtbManipulate.Clear();
            RtbManipulate.LogMessage(decodedString, Brushes.Black);
        }
Example #2
0
        private void Base64EncodeButton_Click(object sender, RoutedEventArgs e)
        {
            string plainText = RtbManipulate.ToOneString(true);


            var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText);

            string encodedBase64String = System.Convert.ToBase64String(plainTextBytes);

            RtbManipulate.Clear();
            RtbManipulate.LogMessage(encodedBase64String, Brushes.Black);
        }