Click here to Skip to main content
15,886,518 members
Articles / Programming Languages / XML

Steganography 18 - GPS Tracks and Waypoints

Rate me:
Please Sign up or sign in to vote.
5.00/5 (12 votes)
1 Aug 2009CPOL4 min read 40.8K   1.1K   25  
Encode a message as waypoints in a GPX file.
namespace GpxStego
{
	partial class MainForm
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Windows Form Designer generated code

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.btnLoadTrack = new System.Windows.Forms.Button();
			this.picTrack = new System.Windows.Forms.PictureBox();
			this.txtStatistics = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.grpTrack = new System.Windows.Forms.GroupBox();
			this.fsTrack = new GpxStego.FileSelectBox();
			this.lblMissingXValues = new System.Windows.Forms.Label();
			this.tcAction = new System.Windows.Forms.TabControl();
			this.tabEncode = new System.Windows.Forms.TabPage();
			this.chkIncludeTrace = new System.Windows.Forms.CheckBox();
			this.fsEncode = new GpxStego.FileSelectBox();
			this.sbEncodeMessage = new GpxStego.StreamBox();
			this.btnEncode = new System.Windows.Forms.Button();
			this.tabDecode = new System.Windows.Forms.TabPage();
			this.chkDecodeWaypointsFromKey = new System.Windows.Forms.CheckBox();
			this.label3 = new System.Windows.Forms.Label();
			this.txtDecodedMessage = new System.Windows.Forms.TextBox();
			this.btnDecode = new System.Windows.Forms.Button();
			this.fsWaypoints = new GpxStego.FileSelectBox();
			((System.ComponentModel.ISupportInitialize)(this.picTrack)).BeginInit();
			this.grpTrack.SuspendLayout();
			this.tcAction.SuspendLayout();
			this.tabEncode.SuspendLayout();
			this.tabDecode.SuspendLayout();
			this.SuspendLayout();
			// 
			// btnLoadTrack
			// 
			this.btnLoadTrack.Location = new System.Drawing.Point(283, 22);
			this.btnLoadTrack.Name = "btnLoadTrack";
			this.btnLoadTrack.Size = new System.Drawing.Size(75, 23);
			this.btnLoadTrack.TabIndex = 1;
			this.btnLoadTrack.Text = "Load track";
			this.btnLoadTrack.UseVisualStyleBackColor = true;
			this.btnLoadTrack.Click += new System.EventHandler(this.btnLoadTrack_Click);
			// 
			// picTrack
			// 
			this.picTrack.Location = new System.Drawing.Point(21, 68);
			this.picTrack.Name = "picTrack";
			this.picTrack.Size = new System.Drawing.Size(256, 256);
			this.picTrack.TabIndex = 4;
			this.picTrack.TabStop = false;
			// 
			// txtStatistics
			// 
			this.txtStatistics.Location = new System.Drawing.Point(288, 205);
			this.txtStatistics.Multiline = true;
			this.txtStatistics.Name = "txtStatistics";
			this.txtStatistics.ReadOnly = true;
			this.txtStatistics.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			this.txtStatistics.Size = new System.Drawing.Size(255, 119);
			this.txtStatistics.TabIndex = 5;
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(285, 68);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(255, 68);
			this.label1.TabIndex = 6;
			this.label1.Text = "Please choose a track with more than 255 different points. The longer the track a" +
				"nd the bigger the area the better! Using this track, your secret message may NOT" +
				" contain these characters:";
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(285, 189);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(256, 13);
			this.label2.TabIndex = 7;
			this.label2.Text = "Transformed track statistics (only for your information)";
			// 
			// grpTrack
			// 
			this.grpTrack.Controls.Add(this.fsTrack);
			this.grpTrack.Controls.Add(this.label2);
			this.grpTrack.Controls.Add(this.lblMissingXValues);
			this.grpTrack.Controls.Add(this.label1);
			this.grpTrack.Controls.Add(this.btnLoadTrack);
			this.grpTrack.Controls.Add(this.txtStatistics);
			this.grpTrack.Controls.Add(this.picTrack);
			this.grpTrack.Location = new System.Drawing.Point(12, 12);
			this.grpTrack.Name = "grpTrack";
			this.grpTrack.Size = new System.Drawing.Size(558, 338);
			this.grpTrack.TabIndex = 8;
			this.grpTrack.TabStop = false;
			this.grpTrack.Text = "Select your Key";
			// 
			// fsTrack
			// 
			this.fsTrack.BrowseButtonEnabled = true;
			this.fsTrack.DialogType = GpxStego.FileSelectBox.FileDialogType.Open;
			this.fsTrack.FileName = "";
			this.fsTrack.Filter = "";
			this.fsTrack.LabelText = "Key geo track";
			this.fsTrack.Location = new System.Drawing.Point(4, 22);
			this.fsTrack.Name = "fsTrack";
			this.fsTrack.Size = new System.Drawing.Size(273, 24);
			this.fsTrack.TabIndex = 0;
			this.fsTrack.TextBoxEnabled = true;
			// 
			// lblMissingXValues
			// 
			this.lblMissingXValues.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.lblMissingXValues.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
			this.lblMissingXValues.Location = new System.Drawing.Point(288, 131);
			this.lblMissingXValues.Name = "lblMissingXValues";
			this.lblMissingXValues.Size = new System.Drawing.Size(255, 47);
			this.lblMissingXValues.TabIndex = 6;
			this.lblMissingXValues.Text = "Alright, everything is allowed!";
			// 
			// tcAction
			// 
			this.tcAction.Controls.Add(this.tabEncode);
			this.tcAction.Controls.Add(this.tabDecode);
			this.tcAction.Enabled = false;
			this.tcAction.Location = new System.Drawing.Point(12, 367);
			this.tcAction.Name = "tcAction";
			this.tcAction.SelectedIndex = 0;
			this.tcAction.Size = new System.Drawing.Size(558, 212);
			this.tcAction.TabIndex = 2;
			// 
			// tabEncode
			// 
			this.tabEncode.Controls.Add(this.chkIncludeTrace);
			this.tabEncode.Controls.Add(this.fsEncode);
			this.tabEncode.Controls.Add(this.sbEncodeMessage);
			this.tabEncode.Controls.Add(this.btnEncode);
			this.tabEncode.Location = new System.Drawing.Point(4, 22);
			this.tabEncode.Name = "tabEncode";
			this.tabEncode.Padding = new System.Windows.Forms.Padding(3);
			this.tabEncode.Size = new System.Drawing.Size(565, 186);
			this.tabEncode.TabIndex = 0;
			this.tabEncode.Text = "Encode";
			this.tabEncode.UseVisualStyleBackColor = true;
			// 
			// chkIncludeTrace
			// 
			this.chkIncludeTrace.AutoSize = true;
			this.chkIncludeTrace.Location = new System.Drawing.Point(360, 121);
			this.chkIncludeTrace.Name = "chkIncludeTrace";
			this.chkIncludeTrace.Size = new System.Drawing.Size(108, 17);
			this.chkIncludeTrace.TabIndex = 7;
			this.chkIncludeTrace.Text = "Include key trace";
			this.chkIncludeTrace.UseVisualStyleBackColor = true;
			// 
			// fsEncode
			// 
			this.fsEncode.BrowseButtonEnabled = true;
			this.fsEncode.DialogType = GpxStego.FileSelectBox.FileDialogType.Save;
			this.fsEncode.FileName = "";
			this.fsEncode.Filter = "";
			this.fsEncode.LabelText = "Save Waypoints as";
			this.fsEncode.Location = new System.Drawing.Point(32, 114);
			this.fsEncode.Name = "fsEncode";
			this.fsEncode.Size = new System.Drawing.Size(322, 24);
			this.fsEncode.TabIndex = 4;
			this.fsEncode.TextBoxEnabled = true;
			// 
			// sbEncodeMessage
			// 
			this.sbEncodeMessage.DialogType = GpxStego.FileSelectBox.FileDialogType.Open;
			this.sbEncodeMessage.FileName = "";
			this.sbEncodeMessage.LabelFile = "Read from file";
			this.sbEncodeMessage.LabelText = "or enter text";
			this.sbEncodeMessage.Location = new System.Drawing.Point(12, 9);
			this.sbEncodeMessage.MessageText = "";
			this.sbEncodeMessage.Name = "sbEncodeMessage";
			this.sbEncodeMessage.Size = new System.Drawing.Size(342, 99);
			this.sbEncodeMessage.TabIndex = 3;
			// 
			// btnEncode
			// 
			this.btnEncode.Location = new System.Drawing.Point(141, 144);
			this.btnEncode.Name = "btnEncode";
			this.btnEncode.Size = new System.Drawing.Size(173, 23);
			this.btnEncode.TabIndex = 5;
			this.btnEncode.Text = "Encode";
			this.btnEncode.UseVisualStyleBackColor = true;
			this.btnEncode.Click += new System.EventHandler(this.btnEncode_Click);
			// 
			// tabDecode
			// 
			this.tabDecode.Controls.Add(this.chkDecodeWaypointsFromKey);
			this.tabDecode.Controls.Add(this.label3);
			this.tabDecode.Controls.Add(this.txtDecodedMessage);
			this.tabDecode.Controls.Add(this.btnDecode);
			this.tabDecode.Controls.Add(this.fsWaypoints);
			this.tabDecode.Location = new System.Drawing.Point(4, 22);
			this.tabDecode.Name = "tabDecode";
			this.tabDecode.Padding = new System.Windows.Forms.Padding(3);
			this.tabDecode.Size = new System.Drawing.Size(550, 186);
			this.tabDecode.TabIndex = 1;
			this.tabDecode.Text = "Decode";
			this.tabDecode.UseVisualStyleBackColor = true;
			// 
			// chkDecodeWaypointsFromKey
			// 
			this.chkDecodeWaypointsFromKey.AutoSize = true;
			this.chkDecodeWaypointsFromKey.Location = new System.Drawing.Point(115, 15);
			this.chkDecodeWaypointsFromKey.Name = "chkDecodeWaypointsFromKey";
			this.chkDecodeWaypointsFromKey.Size = new System.Drawing.Size(261, 17);
			this.chkDecodeWaypointsFromKey.TabIndex = 10;
			this.chkDecodeWaypointsFromKey.Text = "Decode the waypoints embedded in the key track";
			this.chkDecodeWaypointsFromKey.UseVisualStyleBackColor = true;
			this.chkDecodeWaypointsFromKey.CheckedChanged += new System.EventHandler(this.chkDecodeWaypointsFromKey_CheckedChanged);
			// 
			// label3
			// 
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(59, 100);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(50, 13);
			this.label3.TabIndex = 9;
			this.label3.Text = "Message";
			// 
			// txtDecodedMessage
			// 
			this.txtDecodedMessage.Location = new System.Drawing.Point(115, 97);
			this.txtDecodedMessage.Multiline = true;
			this.txtDecodedMessage.Name = "txtDecodedMessage";
			this.txtDecodedMessage.ReadOnly = true;
			this.txtDecodedMessage.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			this.txtDecodedMessage.Size = new System.Drawing.Size(213, 67);
			this.txtDecodedMessage.TabIndex = 8;
			// 
			// btnDecode
			// 
			this.btnDecode.Location = new System.Drawing.Point(115, 68);
			this.btnDecode.Name = "btnDecode";
			this.btnDecode.Size = new System.Drawing.Size(173, 23);
			this.btnDecode.TabIndex = 7;
			this.btnDecode.Text = "Decode";
			this.btnDecode.UseVisualStyleBackColor = true;
			this.btnDecode.Click += new System.EventHandler(this.btnDecode_Click);
			// 
			// fsWaypoints
			// 
			this.fsWaypoints.BrowseButtonEnabled = true;
			this.fsWaypoints.DialogType = GpxStego.FileSelectBox.FileDialogType.Open;
			this.fsWaypoints.FileName = "";
			this.fsWaypoints.Filter = "";
			this.fsWaypoints.LabelText = "Waypoints";
			this.fsWaypoints.Location = new System.Drawing.Point(6, 38);
			this.fsWaypoints.Name = "fsWaypoints";
			this.fsWaypoints.Size = new System.Drawing.Size(322, 24);
			this.fsWaypoints.TabIndex = 6;
			this.fsWaypoints.TextBoxEnabled = true;
			// 
			// MainForm
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(586, 590);
			this.Controls.Add(this.tcAction);
			this.Controls.Add(this.grpTrack);
			this.Name = "MainForm";
			this.Text = "Geo Stego";
			((System.ComponentModel.ISupportInitialize)(this.picTrack)).EndInit();
			this.grpTrack.ResumeLayout(false);
			this.grpTrack.PerformLayout();
			this.tcAction.ResumeLayout(false);
			this.tabEncode.ResumeLayout(false);
			this.tabEncode.PerformLayout();
			this.tabDecode.ResumeLayout(false);
			this.tabDecode.PerformLayout();
			this.ResumeLayout(false);

		}

		#endregion

		private System.Windows.Forms.Button btnLoadTrack;
		private System.Windows.Forms.PictureBox picTrack;
		private System.Windows.Forms.TextBox txtStatistics;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.GroupBox grpTrack;
		private System.Windows.Forms.TabControl tcAction;
		private System.Windows.Forms.TabPage tabEncode;
		private System.Windows.Forms.TabPage tabDecode;
		private System.Windows.Forms.Button btnEncode;
		private StreamBox sbEncodeMessage;
		private FileSelectBox fsEncode;
		private System.Windows.Forms.Label lblMissingXValues;
		private FileSelectBox fsTrack;
		private FileSelectBox fsWaypoints;
		private System.Windows.Forms.Button btnDecode;
		private System.Windows.Forms.TextBox txtDecodedMessage;
		private System.Windows.Forms.CheckBox chkIncludeTrace;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.CheckBox chkDecodeWaypointsFromKey;
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Germany Germany
Corinna lives in Hanover/Germany and works as a C# developer.

Comments and Discussions