Wolfram Research

Function Repository Resource:

SteganographyExtract

Source Notebook

Extract a message that has been hidden in an image using the resource function SteganographyInsert

Contributed by: Jon McLoone  |  Jon McLoone

ResourceFunction["SteganographyExtract"][img]

extracts a message hidden in image img.

Details and Options

Only messages hidden using the resource function SteganographyInsert can be extracted.

Examples

Basic Examples (2) 

Hide a message within an image:

In[1]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/62ef854e-8098-4ff8-8544-066a2318cf5b"]
Out[1]=

Recover the message using the following:

In[2]:=
ResourceFunction["SteganographyExtract"][img]
Out[2]=

Scope (2) 

You can specify the text encoding of the message for efficient representation. This calls ExportString on the message first:

In[3]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/e7e1809c-3f54-4ac6-9b7b-eeb748288119"]
Out[3]=

The encoding method is automatically detected and reversed during extraction:

In[4]:=
ResourceFunction["SteganographyExtract"][img]
Out[4]=

Possible Issues (1) 

If no message has been hidden, or the image has been corrupted by image compression, the extraction will nearly always fail, but could produce a large string of random characters:

In[5]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/dd6406a0-1f03-4916-b3cf-1141914ed703"]
Out[5]=

If you use an encoding method, some information may be lost during the ExportString and ImportString processes.

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

Related Resources

License Information