Exemplo n.º 1
0
        /// <summary>
        /// Creates new instance of algorithm, then sends for embedding of data
        /// </summary>
        private void ButtonHideMessageClick(object sender, EventArgs e)
        {
            var message = encoding_textBox_secretMessage.Text;
            var path = encoding_textBox_imagePath.Text;

            var dist = new BaseAlgorithm();
            dist.Embed(path, message);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates new instance of algorithm, then sends for extraction of data
        /// </summary>
        private void DecodingButtonDecodeMessageClick(object sender, EventArgs e)
        {
            if (encoding_pictureBox_mainImage != null)
            {
                var dist = new BaseAlgorithm();
                var extractedText = dist.Extract(decoding_textBox_imagePath.Text);

                decoding_textBox_secretMessage.Text = extractedText;
            }
        }