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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Selva GanapathyPosted Mar 4, 2014, 2:13 AM
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
Selva GanapathyPosted Mar 4, 2014, 2:03 AM
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
VulpesPosted Mar 3, 2014, 5:35 PM
I was expecting a follow-up question but, in the absence of other information, didn't see much point in trying to anticipate it.
theLizardPosted Mar 3, 2014, 5:00 PM
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.
VulpesPosted Mar 2, 2014, 4:31 PM