syvaidya / openstego

OpenStego is a steganography application that provides two functionalities: a) Data Hiding: It can hide any data within an image file. b) Watermarking: Watermarking image files with an invisible signature. It can be used to detect unauthorized file copying.
https://www.openstego.com
GNU General Public License v2.0
1.13k stars 206 forks source link

Linux - Windows versions not cross compatible? #41

Closed bonzi9 closed 3 years ago

bonzi9 commented 3 years ago

Just stumbled onto this tool to hide sensitive information.

For security reasons I want to use an air-gapped Linux machine to create the files with hidden data, which runs Linux Lite 5.4 from the live USB image. Using OpenStego v0.8.0 on both Windows and Linux. Testing multiple possibilities to extract the data reliably I found that trying to extract the Linux-created hidden file on Windows 10 (build 10.0.19042.985, 20H2), always results in an error after multiple tries with different image files:

Extract on Windows error

The (same) file can be created and extracted on Linux without issues:

Create on linux

Extract on linux

Below is the Linux-created .png file with hidden data, the password is test123 and the embedded data is a file named "New File" which can be opened in a text editor to reveal "test 1 2 3 4 5 6 7 8 9 0". https://drive.google.com/file/d/1V-np_zQBlDpuMTIqfjsN3Io41txlLg5j/view?usp=sharing

syvaidya commented 3 years ago

@bonzi9 it looks like your local file on windows is corrupted (probably while downloading/transferring). I downloaded your file on windows and can successfully extract the message:

image