Ejemplo n.º 1
0
        private void DecryptButton_Click_1(object sender, EventArgs e)
        {
            NameEncryptLabel.Text     = PasswordEncryptor.Decrypt(EncryptedName);
            AdressEncryptLabel.Text   = PasswordEncryptor.Decrypt(EncryptedAdress);
            PaymentEncryptLabel.Text  = PasswordEncryptor.Decrypt(EncryptedPay);
            PasswordEncryptLabel.Text = PasswordEncryptor.Decrypt(EncryptedPass);


            //NameEncryptLabel.Text = EncryptedName;
            //AdressEncryptLabel.Text = EncryptedAdress;
            //PaymentEncryptLabel.Text = EncryptedPay;
            //PasswordEncryptLabel.Text = EncryptedPass;
        }
Ejemplo n.º 2
0
        public void SendButton_Click(object sender, EventArgs e)
        {
            if (NameTextBox.TextLength > 0 && AdressTextBox.TextLength > 0 && PaymentCombo.SelectedItem != null && PasswordTextBox.TextLength > 0)
            {
                EncryptedName         = PasswordEncryptor.Encrypt(NameTextBox.Text);
                NameEncryptLabel.Text = EncryptedName;

                EncryptedAdress         = PasswordEncryptor.Encrypt(AdressTextBox.Text);
                AdressEncryptLabel.Text = EncryptedAdress;


                EncryptedPay             = PasswordEncryptor.Encrypt(PaymentCombo.SelectedItem.ToString());
                PaymentEncryptLabel.Text = EncryptedPay;

                EncryptedPass             = PasswordEncryptor.Encrypt(PasswordTextBox.Text);
                PasswordEncryptLabel.Text = EncryptedPass;


                resultGroup.Visible = true;
            }
        }