So using the library, I take an image and text and hide the text in there. The library produces a new image (PNG) that has the message in it. I have a second script that extracts the text.
The images look the same to my eyes.
A future test would be to run a deep learning library or image analysis tool on the images to see if they spot the bits. They should be able to. A future NiFi tool would be to spot hidden images.
It's a fun exercise to use NiFi and it seems possible that encoding messages in images were passing through Niagra Files back in the NSA days.
13337-spydataflow.png
Step 1: Hide Text (ExecuteStreamCommand)
13338-spyhide.png
13351-spyencoderesults.png
Step 2: Fetch File
13339-spyfetchfile.png
Step 3: UnHide Text (ExecuteStreamCommand)
13340-spyunhide.png
13352-spysecretmessage.png
The left image is the original image and the right PNG is the output image with text. The size on disk has increased at a noticeable level.
13336-spy1.png
The python source code is in github and referenced below: