How to hide multiple types of information in the same file? I have a vague memory of watching a video of a guy &quot;unraveling the secret story / lore&quot; from the game Doki Doki Literature Club.
And I remember that he took a file, converted it to .txt and had certain information, converted the same file to .jpg and had other totally different information. Information that can only be seen if you convert the file to .txt and other information that can only be seen if you convert the file to .jpg.
How do I hide different messages in the same file that can only be deciphered by converting it to other file extensions?
If that is not possible then it must be something that my brain messed up in my memories, but I am pretty sure it was like that.
And I don’t have any more details, so I can’t research it properly. This would open up new possibilities for more immersive mystery or horror games.
By the way, I know the basics of steganography but I have never seen anything like it, hiding multiple types of information in the same file.
One simple steganographic technique is to just use the comment structure of a mark-up language to embed plaintext messages. For example, the html code
&lt;!-- ATTACK AT DAWN --&gt;
&lt;img src=&quot;lolcat.jpg&quot;&gt;

inserted in a web page and opened in a browser will render as an image (presumably of an amusing cat), but if opened in a text editor the comment line can be read (and the cat picture can not be examined).
In particular the jpg format allows COM segments which are preceded by the bytes 0xFF 0xFE and a length field which then allow insertion of ASCII text.
Note that this is pretty trivial to detect and provides only steganographic protection (vice cryptographic).