资源简介
F5隐藏算法程序,含用法说明文件,可在多种图片文件中隐藏和提取txt文件
代码片段和文件信息
import james.*;
import image.Bmp;
import java.awt.*;
import java.io.*;
import java.util.*;
import java.lang.*;
public class embed
{
public static void StandardUsage() {
System.out.println(“F5/JpegEncoder for Java(tm)“);
System.out.println(““);
System.out.println(“Program usage: java embed [Options] \“InputImage\“.\“ext\“ [\“OutputFile\“[.jpg]]“);
System.out.println(““);
System.out.println(“You have the following options:“);
System.out.println(“-e bed>\tdefault: embed nothing“);
System.out.println(“-p \t\tdefault: \“abc123\“ only used when -e is specified“);
System.out.println(“-q \tdefault: 80“);
System.out.println(“-c \t\tdefault: \“JPEG Encoder Copyright 1998 James R. Weeks and BioElectroMech. \““);
System.out.println(““);
System.out.println(“\“InputImage\“ is the name of an existing image in the current directory.“);
System.out.println(“ (\“InputImage may specify a directory too.) \“ext\“ must be .tif .gif“);
System.out.println(“ or .jpg.“);
System.out.println(“Quality is an integer (0 to 100) that specifies how similar the compressed“);
System.out.println(“ image is to \“InputImage.\“ 100 is almost exactly like \“InputImage\“ and 0 is“);
System.out.println(“ most dissimilar. In most cases 70 - 80 gives very good results.“);
System.out.println(“\“OutputFile\“ is an optional argument. If \“OutputFile\“ isn‘t specified then“);
System.out.println(“ the input file name is adopted. This program will NOT write over an existing“);
System.out.println(“ file. If a directory is specified for the input image then \“OutputFile\““);
System.out.println(“ will be written in that directory. The extension \“.jpg\“ may automatically be“);
System.out.println(“ added.“);
System.out.println(““);
System.out.println(“Copyright 1998 BioElectroMech and James R. Weeks. Portions copyright IJG and“);
System.out.println(“ Florian Raemy LCAV. See license.txt for details.“);
System.out.println(“Visit BioElectroMech at www.obrador.com. Email James@obrador.com.“);
System.out.println(“Steganography added by Andreas Westfeld westfeld@inf.tu-dresden.de“);
System.exit(0);
}
public static void main(String args[]) {
Image image = null;
FileOutputStream dataOut = null;
File file outFile;
JpegEncoder jpg;
int i Quality = 80;
// Check to see if the input file name has one of the extensions:
// .tif .gif .jpg
// If not print the standard use info.
boolean haveInputImage = false;
String embFileName=null;
String comment=“JPEG Encoder Copyright 1998 James R. Weeks and BioElectroMech. “;
String password=“abc123“;
String inFileName=null;
String outFileName=null;
if (args.length < 1)
StandardUsage();
for (i=0; i if (!args[i].startsWit
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 213 1999-12-16 13:01 f5r12beta\f5\bin.noise
文件 665 2001-06-21 11:52 f5r12beta\f5\crypt\F5Random.class
文件 697 2001-06-21 11:52 f5r12beta\f5\crypt\F5Random.java
文件 516 2000-06-13 15:34 f5r12beta\f5\crypt\Permutation.class
文件 913 2000-06-13 15:29 f5r12beta\f5\crypt\Permutation.java
文件 94 2000-06-06 16:02 f5r12beta\f5\d
文件 63 1999-12-28 16:31 f5r12beta\f5\d.bat
文件 109 2001-11-06 11:39 f5r12beta\f5\e
文件 105 2001-11-06 11:39 f5r12beta\f5\e.bat
文件 4685 2001-11-06 11:40 f5r12beta\f5\em
文件 5203 2001-11-06 11:40 f5r12beta\f5\em
文件 4335 2002-07-03 17:37 f5r12beta\f5\Extract.class
文件 6331 2002-07-03 17:36 f5r12beta\f5\Extract.java
文件 18347 1999-07-15 16:21 f5r12beta\f5\gpl.txt
文件 2609 2000-06-13 15:34 f5r12beta\f5\image\Bmp.class
文件 2545 2000-05-06 12:21 f5r12beta\f5\image\Bmp.java
文件 4867 2002-07-05 17:02 f5r12beta\f5\james\DCT.class
文件 7345 2002-07-05 17:02 f5r12beta\f5\james\Huffman.class
文件 20256 1998-04-05 21:39 f5r12beta\f5\james\IJGreadme.txt
文件 4758 2000-05-06 12:41 f5r12beta\f5\james\Jpeg.java
文件 10672 2002-07-05 17:02 f5r12beta\f5\james\JpegEncoder.class
文件 60541 2002-07-05 17:02 f5r12beta\f5\james\JpegEncoder.java
文件 3719 2002-07-05 17:02 f5r12beta\f5\james\JpegInfo.class
文件 1466 1999-09-09 12:20 f5r12beta\f5\james\license.txt
文件 383 1998-05-13 12:55 f5r12beta\f5\james\version.txt
文件 341 2000-04-29 21:26 f5r12beta\f5\java\security\SecureRandomSpi.class
文件 323 1999-12-21 15:49 f5r12beta\f5\license.txt
文件 188706 1999-12-28 16:30 f5r12beta\f5\lopez.bmp
文件 373 2000-06-06 16:57 f5r12beta\f5\Makefile
文件 64 1999-12-28 16:31 f5r12beta\f5\ms_d.bat
............此处省略22个文件信息
- 上一篇:TCP+UDP通信实验
- 下一篇:自己编写的红月生化升级不爆的代码
评论
共有 条评论