Tag: steganography

更改图像rgb值的lsb值,给出不一致的值

我试图更改图像像素的lsb值,使其与字符串“abc”匹配,但将1或0添加到奇数值的像素返回0. 这里是代码: public static void main(String[] args) { BufferedImage img = null; try { img = ImageIO.read(new File(“a.jpg”)); } catch (IOException ex) { } int pixel[] = img.getRGB(0, 0, img.getWidth(), img.getHeight(), null, 0, img.getWidth()); String s = “abc”; byte[] b = s.getBytes(); String f = “”; for (int i = 0; i < b.length; i++) […]