Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Hide content in an image
ResourceFunction["SteganographyInsert"][image,content] returns an image similar to image with content hidden within it. | |
ResourceFunction["SteganographyInsert"][image,content,form] encodes content as form before hiding it within the image. |
Hide a secret message in an image:
In[1]:= |
Out[1]= |
Recover the message using:
In[2]:= |
Out[3]= |
You can specify the text encoding of the message for efficient representation. This effectively calls ExportString on the message first:
In[4]:= |
Out[4]= |
In[5]:= |
Out[6]= |
The maximum message size depends on the size of the carrier image and must serialize into text of at most (3×8×height×width-320) bits. If you attempt to insert a larger message, the function will fail:
In[7]:= |
Out[7]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License