I am working on a Java Steganography project to hide a .txt message in a JPEG image. Broadly speaking, there are 4 steps:
- Transform each pixel block into 8x8 DCT coefficients.
- Quantitize each block with some complex calculations.
- Embed/replace each bit of the message into the LSB of the coefficients of each block.
- After embedding, perform the inverse DCT to re-create the JPEG image with the embedded message.
I am stuck on the 3rd step, because I am not sure how I can record what coefficients I have altered with the message, in order to extract it back out?
Can anyone recommend what ways I can embed each coefficient, and to record each embedding, in order to extract it back out?
This would be much appreciated.
(Also I know that 1s and 0s, and the DC value should be left alone).