예제 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (CheckTextBox())
     {
         var entryStr = txtEncrypt.Text;
         try
         {
             txtDecrypt.Text = BASE64.Encrypt(entryStr);
         }
         catch (Exception ex)
         {
             txtDecrypt.Text = ex.Message;
         }
     }
 }
예제 #2
0
        private void btnDecrypt_Click(object sender, EventArgs e)
        {
            if (CheckTextBox())
            {
                var    entryStr = txtEncrypt.Text;
                string result   = string.Empty;

                try
                {
                    txtDecrypt.Text = BASE64.Decrypt(entryStr);
                }
                catch (Exception ex)
                {
                    txtDecrypt.Text = ex.Message;
                }
            }
        }