Results 1 to 2 of 2
Thread: hiding bits in image
- 04-06-2011, 05:28 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 28
- Rep Power
- 0
- 04-07-2011, 03:46 PM #2
Member
- Join Date
- Jan 2011
- Posts
- 67
- Rep Power
- 0
There are many ways to do it but almost all are highly dependent on the image format.
The easiest and most compatible way is to store the data in the last bit of each value of each color channel as well as an integer specifying how much data there is. All this needs is a lossless image format like BMP or PNG.
Some file formats will allow you to just stuff whatever data you want at the end of the file, though it works best with lossy image formats as the difference in file size is less noticeable. However you can't always guarantee that programs reading the image as an image will ignore the additional data safely.
A few file formats actually support custom data chunks where you can store whatever you want if you follow a sort of template for storing your data (usually some identifier and the size of the data followed by the actual data).
It's all pretty basic stuff but you really need to research the image format to find out what will work with what and how.
Edit: Be aware that some of these methods have been used to hide viruses and virus scanners could detect the data as being a potential virus even if it isn't.Last edited by Skiller; 04-07-2011 at 03:51 PM.
Currently developing Cave Dwellers, a Dwarf Fortress/Minecraft style game for Android.
Similar Threads
-
Bitshifting doesn't shift bits?
By Skiller in forum New To JavaReplies: 19Last Post: 03-02-2011, 09:30 AM -
Help with random bits array
By AnimeKitty in forum New To JavaReplies: 11Last Post: 07-30-2010, 04:37 AM -
48 bits JPEG 2000
By user_java in forum Java 2DReplies: 0Last Post: 03-02-2010, 05:19 AM -
Image to Binary bits
By Deva in forum New To JavaReplies: 4Last Post: 12-24-2009, 04:49 PM -
extracting bits from big numbers
By ankitmcgill in forum New To JavaReplies: 6Last Post: 05-05-2009, 04:36 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks