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

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/10f38468-307f-4f13-aac8-c5121ca7d3da"]
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/76328feb-4550-456a-babd-52e4b0060939"]
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/8d89d973-c589-4e9e-a599-9f645e471f31"]
Out[5]=

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

Publisher

Jon McLoone

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 12 April 2019

Related Resources

License Information