Ejemplo n.º 1
0
        private void kryptonButton3_Click(object sender, EventArgs e)
        {
            this.image1 = (Bitmap)pictureBox1.Image;
            if (this.encryptedData.Equals(""))
            {
                MessageBox.Show("The text you want to hide can't be empty", "Warning");

                return;
            }
            this.image1 = HideHelper.embedText(this.encryptedData, image1);
            MessageBox.Show("SuccesFully Hidden! Don't Forget to Save!");
        }
Ejemplo n.º 2
0
        private void kryptonButton4_Click(object sender, EventArgs e)
        {
            EncryptHelper encryptor = new EncryptHelper();
            //string key1 = "aaabbbb-"+textBox2.Text.Trim() + "-xxxyyy";
            string key1 = textBox2.Text.Trim();

            this.image1 = (Bitmap)pictureBox1.Image;
            string outText = "";

            try
            {
                outText = HideHelper.extractText(image1);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Password Incorrect Or Image Doesn't contain any Steganographic Data.");
            }
            this.encryptedData = encryptor.DecryptIt(outText, key1);
            textBox1.Text      = this.encryptedData;
            MessageBox.Show("SuccessFully Decrypted.");
        }