Steganography Project
I want the code to convert an image into binary so that I can use it in my project in .NET technology.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 2, 2014, 11:31 AM EST
theLizardRank #1,079 · 1.8K reputationPosted Mar 3, 2014, 12:00 PM EST
Your solution does not and cannot do that, each pixel would need to be individually encoded so that somewhere in the color code say, "30056783", 56 would represent a character, of course something as simple as this could easily be decoded so you would need to have a means so that it cannot esily be decoded like having a color pixel created from a binary value say "10011101" that can then be used as the decoding key for the pixel holding the character code
I once wrote a program (I still have the code somewhere) in C# that when I typed in a text box, the character would show in an image box as a color pixel.
Very complicated program that allowed you to give 4 pharases which would then determin how the random color was to be encoded and decoded, this method created a random color and a decryption key pair so that every color pixel that had an embeded character would have an associated key with no decryption key being the same, impossible for anyone to decrypt without the 4 phrases and a primary value.
VulpesRank #55 · 29.2K reputationPosted Mar 3, 2014, 12:35 PM EST
I was expecting a follow-up question but, in the absence of other information, didn't see much point in trying to anticipate it.
Selva GanapathyRank #560 · 4.3K reputationPosted Mar 3, 2014, 9:03 PM EST
Here is the simple and effective stegnography logic on one of my article.
http://www.c-sharpcorner.com/UploadFile/6f0898/simple-steganography-encryption-and-decryption-huge-message/
Regards,
Selva Ganapathy K
Selva GanapathyRank #560 · 4.3K reputationPosted Mar 3, 2014, 9:13 PM EST
You can convert an image into binary, you need to convert the file in to byte as first thing using the following code snippet
var filename = "C:/Users/selvaganapathyk/Desktop/";
byte[] bytes = System.IO.File.ReadAllBytes(filename + "file.png");
After that you may convert the integervalue in to binary. or you can simply follow a way which i used to follow in the below article
http://www.c-sharpcorner.com/UploadFile/6f0898/simple-steganography-encryption-and-decryption-huge-message/
Regards,
Selva Ganapathy K