Steganography in lossy compression (JAVA)
I have this for encoding data in jpeg images in java. I am converting the text to its binary form and insert it to the LSB (depending on what the user has chosen.1,2,3,4) of the RGB in each pixel from (0,0) till (width,height). outer: for(int i = 0; i < height; i++){ for(int j = 0; j < width; j++){ Color c = new Color(image.getRGB(j, i)); int red = binaryToInteger(insertMessage(integerToBinary((int)(c.getRed())),numLSB)); int green = binaryToInteger(insertMessage(integerToBinary((int)(c.getGreen())),numLSB)); int blue = binaryToInteger(insertMessage(integerToBinary((int)(c.getBlue())),numLSB))