Exemplo n.º 1
0
        private void KontrolEt_Click(object sender, EventArgs e)
        {
            bmp = (Bitmap)pictureBox1.Image;

            string GelenMesaj = SteganographyHelper.extractText(bmp);

            if (girilenSifre.Text == "")
            {
                MessageBox.Show("Şifre Girilmedi!", "Dikkat");
                return;
            }
            try
            {
                GelenMesaj      = Crypto.DecryptStringAES(GelenMesaj, girilenSifre.Text);
                notesLabel.Text = "";
            }
            catch
            {
                notesLabel.Text      = "Yanlış";
                notesLabel.ForeColor = Color.Red;
                return;
            }


            gelenCikti.Text = GelenMesaj;
        }
        private void button2_Click(object sender, EventArgs e)
        {
            Bitmap bmp           = (Bitmap)pictureBox1.Image;
            string extractedText = SteganographyHelper.extractText(bmp);

            textBox1.Text = extractedText;
        }
        private void extractButton_Click(object sender, EventArgs e)
        {
            bmp = (Bitmap)imagePictureBox.Image;

            string extractedText = SteganographyHelper.extractText(bmp);

            if (encryptCheckBox.Checked)
            {
                try
                {
                    extractedText = Crypto.DecryptStringAES(extractedText, passwordTextBox.Text);
                }
                catch
                {
                    try
                    {
                        Thread t4 = new Thread((x) => mesg(x));
                        t4.Start("wrong password please enter a valid password");
                    }
                    finally
                    {
                        MessageBox.Show("Wrong password", "Error");
                    }
                    return;
                }
            }

            dataTextBox.Text = extractedText;
        }
Exemplo n.º 4
0
        private void extractButton_Click(object sender, EventArgs e)
        {
            bmp = (Bitmap)imagePictureBox.Image;

            string extractedText = SteganographyHelper.extractText(bmp);

            dataTextBox.Text = extractedText;
        }
        //--Sự kiện click nút ĐỌC TIN--//
        private void extractButton_Click(object sender, EventArgs e)
        {
            if (openedStego)
            {
                bmp = (Bitmap)imagePictureBox.Image;

                string extractedText = SteganographyHelper.extractText(bmp);    // Hàm extractText trong class SteganographyHelper

                dataTextBox.Text = extractedText;
            }
        }
Exemplo n.º 6
0
        private void extractButton_Click(object sender, EventArgs e)
        {
            bmp = (Bitmap)imagePictureBox.Image;

            string extractedText = SteganographyHelper.extractText(bmp);

            if (encryptCheckBox.Checked)
            {
                try
                {
                    extractedText = Crypto.DecryptStringAES(extractedText, passwordTextBox.Text);
                }
                catch
                {
                    MessageBox.Show("Wrong password", "Error");

                    return;
                }
            }

            dataTextBox.Text = extractedText;
        }