How can you hide information inside a jpg or gif photo?

后端 未结 8 1184
鱼传尺愫
鱼传尺愫 2020-12-01 04:36

How can I write some information inside a photo file like jpg or gif without destroying the image? and of course without showing it on the photo since the whole idea is to s

8条回答
  •  猫巷女王i
    2020-12-01 05:03

    You can concatenate a gif and a zip (the information you want to hide) into one file. Gifs are read from the start of the file, while zips are read from the end of the file.

    To create such a file in linux:

    $ cat file1.gif >> outfile.gif
    $ cat file2.zip >> outfile.gif
    

    The resulting file should have the size of file1.gif and file2.zip together and should be openable by any gif viewer and zip file handler.

提交回复
热议问题