Click here to Skip to main content
15,886,833 members
Articles / Programming Languages / C#

Steganography II - multiple key and carrier files

Rate me:
Please Sign up or sign in to vote.
4.83/5 (19 votes)
3 Apr 2004CPOL4 min read 101.9K   4.8K   51  
An article about spreading hidden data over many images.
using System;

namespace PictureKey
{
	public struct FilePasswordPair{
		public String fileName;
		public String password;

		public FilePasswordPair(String fileName, String password){
			this.fileName = fileName;
			this.password = password;
		}
	}

	public struct CarrierImage{
		//file name of the clean image
		public String sourceFileName;
		//file name to save the new image
		public String resultFileName;
		//width * height
		public long countPixels;
		//produce colorful (false) or grayscale noise (true) for this picture
		public bool useGrayscale;
		//how many bytes will be hidden in this image - this field is set by CryptUtility.HideOrExtract()
		public long messageBytesToHide;

		public CarrierImage(String sourceFileName, String resultFileName, long countPixels, bool useGrayscale){
			this.sourceFileName = sourceFileName;
			this.resultFileName = resultFileName;
			this.countPixels = countPixels;
			this.useGrayscale = useGrayscale;
			this.messageBytesToHide = 0;
		}
	}
}

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