Wednesday 18 September 2013

Installing JSteg in Ubuntu

JSteg is another great tool I have been reading about whilst brushing up on my Stego, the book is linked in my previous post.

JSteg

wget http://zooid.org/~paul/crypto/jsteg/jpeg-v4.tar.Z

 cp makefile.ansi Makefile

cp jmemansi.c jmemsys.c

make

sudo cp cjpeg djpeg /usr/local/bin
 Test it:

cjpeg -h

usage: cjpeg [switches] [inputfile]
Switches (names may be abbreviated):
  -quality N     Compression quality (0..100; 5-95 is useful range)
  -grayscale     Create monochrome JPEG file
  -optimize      Optimize Huffman table (smaller file, but slow compression)
  -targa         Input file is Targa format (usually not needed)
Switches for advanced users:
  -restart N     Set restart interval in rows, or in blocks with B
  -smooth N      Smooth dithered input (N=1..100 is strength)
  -maxmemory N   Maximum memory to use (in kbytes)
  -verbose  or  -debug   Emit debug output
Switches for wizards:
  -qtables file  Use quantization tables given in file
  -sample HxV[,...]  Set JPEG sampling factors

  djpeg -h
usage: djpeg [switches] [inputfile]
Switches (names may be abbreviated):
  -colors N      Reduce image to no more than N colors
  -gif           Select GIF output format
  -pnm           Select PBMPLUS (PPM/PGM) output format (default)
  -quantize N    Same as -colors N
  -targa         Select Targa output format
Switches for advanced users:
  -blocksmooth   Apply cross-block smoothing
  -grayscale     Force grayscale output
  -nodither      Don't use dithering in quantization
  -onepass       Use 1-pass quantization (fast, low quality)
  -maxmemory N   Maximum memory to use (in kbytes)
  -verbose  or  -debug   Emit debug output

HTH
 
 

No comments:

Post a Comment