outguess icon indicating copy to clipboard operation
outguess copied to clipboard

Outguess leaves a signature in file headers after embedding information

Open hoijui opened this issue 5 years ago • 2 comments

as mentioned here (in an other fork of outguess): https://github.com/crorvick/outguess/issues/1

(NOTE: I did not try if it happens with this outguess too, but I would assume it does)

Outguess doesn't preserve the image header, and if you do hexdump {image}.jpg | grep CDEF you'll see what I mean

hoijui avatar Apr 14 '20 18:04 hoijui

This looks bogus, outguess just uses a standard copy of libjpeg with a twoline patch that only touches the coefficients calculation, and more or less the example code for writing the jpeg.

The same "signature" is in the libjpeg sample jpegs, even in libjpeg-turbo: image

outguess could be improved by using jpeg_read_coefficients() and jpeg_write_coefficients(), though, then it doesn't need to ship a patched copy of libjpeg, improves performance, doesn't need to recompress etc. and can generate an otherwise identical file

sandsmark avatar Oct 04 '20 19:10 sandsmark

@sandsmark it is very good idea. Now OutGuess structure is re-organized (after several commits). Do you have time to implement your idea?

eribertomota avatar Aug 21 '21 01:08 eribertomota