Tag: 隐写术

java中的video隐写术

我正在为我的项目实施video隐写术。 我从这里看到了算法。 我已经尝试并测试了代码,嵌入部分工作正常。 但我遇到了readByte的问题,这是VideoSteganography类中的最后一个方法。 该方法给出了ArrayIndexOutOfBoundsException 。 以下是方法。 我将参数传递给 String fname = jTextField3.getText(); File fil = new File(fname); String password = “123456”; SteganoInformation cls = new SteganoInformation(fil); VideoSteganography.retrieveFile(cls, password, true); 而方法是 public static boolean retrieveFile(SteganoInformation info, String password, boolean overwrite) { File dataFile= null; features= info.getFeatures(); try { masterFile= info.getFile(); byteArrayIn= new byte[(int) masterFile.length()]; DataInputStream in= […]

从java中的图像中读取加密的字节

我必须在加密图像(Stegnography)中嵌入文本。 我用Google搜索并找到了在图片中嵌入文字的代码。 但我必须首先加密图像并在此加密图像中嵌入文本。 我的尝试如下。 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package tbn; import java.awt.Graphics2D; import java.awt.Point; import java.awt.Transparency; import java.awt.image.BufferedImage; import java.awt.image.ColorModel; import java.awt.image.ComponentColorModel; import java.awt.image.DataBuffer; import java.awt.image.DataBufferByte; import java.awt.image.Raster; import java.awt.image.WritableRaster; import java.io.File; import java.io.IOException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; […]

在java中探索图像处理的良好资源

我是图像处理的新手,请为初学者和高级水平的java提供一些好的资源(书籍和网络链接),用于学习图像处理(最适合隐写术分析)。 我见过oracle提供的文档,但是我想要一些专注于当前行业开发中使用的实际环境的教程和书籍。 谢谢!!

隐藏JPG图像中的消息

我试图隐藏一个图像,它与.bmp和.png一起正常工作但是当我将图像写为JPG并尝试检索隐藏的消息时它无法正常工作。 我的程序,首先读取格式化的图像( bmp , gif , jpg , png )写入消息以隐藏并保存它,以便我们可以再次读取它并提取消息。 当我用bmp或png保存它时它工作正常但是当用jpg保存并尝试提取消息时它不起作用。 ImageIO.write(bimg, “png”, outputfile);//working ImageIO.write(bimg, “png”, outputfile);//not working 我该怎么做才能使它适用于JPEG? 注意:我正在将每个像素读取为具有ARGB值的4位整数并更改R,G,B的LSB以隐藏消息。 public void stegnography(BufferedImage bimg,String msg,String filename) { int w=bimg.getWidth(); int h=bimg.getHeight(); //*************************************** // String msg=”Hide this message:)”; System.out.println(“message=”+msg+” length=”+msg.length()); //*************************************** if(msg.length()>255 ) { jLabel3.setText(“MESSAGE IS LARGE THAN 255 CHARACTERS”); } else if( msg.length()*11 >w*h) { […]

有损压缩中的隐写术(JAVA)

我有这个用于在java中的jpeg图像中编码数据。 我正在将文本转换为二进制forms,并将其插入LSB(取决于用户选择的内容.1,2,3,4),每个像素中的RGB从(0,0)到(宽度,高度) 。 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)); Color newColor = new Color(red,green,blue); image.setRGB(j,i,newColor.getRGB()); } } gui.appendStatus("Binarized message is: " + binarizedMessage); File output = […]