Function Repository Resource:

StringObfuscate

Source Notebook

Generate an image of a string that is obfuscated so as to resist interpretation by automated systems

Contributed by: Jeff Bryant

ResourceFunction["StringObfuscate"][str]

generates an image of the string obfuscated by image processing techniques.

Details and Options

Available options include:

Examples

Basic Examples (2) 

Obfuscate a string:

In[1]:=
ResourceFunction["StringObfuscate"]["Hello"]
Out[1]=

Obfuscate a longer string:

In[2]:=
ResourceFunction["StringObfuscate"]["I'm not a Robot"]
Out[2]=

Options (3) 

RandomSeeding (1) 

Specify RandomSeeding to control randomness between evaluations:

In[3]:=
ResourceFunction["StringObfuscate"]["Hello", RandomSeeding -> 0]
Out[3]=
In[4]:=
ResourceFunction["StringObfuscate"]["Hello", RandomSeeding -> 0]
Out[4]=

FontFamily (1) 

Specify the font to use instead of one of the randomly selected ones used by default:

In[5]:=
ResourceFunction["StringObfuscate"]["Hello", FontFamily -> "Felipa"]
Out[5]=

ImageSize (1) 

Specify a specific size for the image:

In[6]:=
ResourceFunction["StringObfuscate"]["Password", ImageSize -> 600]
Out[6]=

Version History

  • 1.0.0 – 13 January 2020

Related Resources

Author Notes

Better, more modern algorithms are encouraged by anyone that knows image processing/CAPTCHA functionality better than the author. This implementation is strongly based on the CAPTCHA[] symbol in the Wolfram|Alpha codebase, with minor modifications.

License Information