Open fruiz500 opened 9 years ago
That is definitely a good point, currently the data is written at the start of the pixel data and after the encoded message ends the original noise in the image is cleaned. But this is only default behaviour, it is possible to specify a function which determines what is written to the image data after the message ends. For some purposes, where steganography.js is just used to store data inside the image and not to really hide it, it is necessary to extract the exact message again. So I think that this is something that should be configurable. Another idea that would support the undetectability would be to distribute the hidden message throughout the image data, so that the whole message is not hidden in a single bundle inside the image. What do you think about that?
Some things that might be done easily:
I think it would be better if there was no way to tell whether or not a message has been hidden in an image. I guess what the code does now is record certain start and end markers so it is possible to know where the encoded material begins and ends. But how about this: