Evaluate

Basic Examples

Encipher a string:
[◼]
PigpenCipher
["Wolfram Language is fun"]
In[]:=
Out[]=

Scope

Space and newlines are enciphered:
[◼]
PigpenCipher
["this is a\nmultiline\nsentence"]
In[]:=
Out[]=
The case is ignored:
[◼]
PigpenCipher
["aA\nbB\ncC\ndD\neE\nfF"]
In[]:=
Out[]=
PigpenCipher
automatically threads over a list of strings:
[◼]
PigpenCipher
[{"s","a","n","d","e","r"}]
In[]:=
,,,,,
Out[]=

Applications

Encipher a secret message:
[◼]
PigpenCipher
["X marks the spot!"]
In[]:=
Out[]=

Properties and Relations

Letters with diacritics are converted using
RemoveDiacritics
:
[◼]
PigpenCipher
["piñata"]
In[]:=
Out[]=
PigpenCipher
outputs a
Graphics
object:
Head
[◼]
PigpenCipher
["Wolfram"]
In[]:=
Graphics
Out[]=

Possible Issues

Numbers, characters from other alphabets, and punctuations are ignored:
[◼]
PigpenCipher
["this, 1337, παντα ρει."]
In[]:=
Out[]=

Neat Examples

Separate pigpen ciphers do not make any sense:
str1=" h s i u t a t s ";​​str2="T i s j s e t";​​
[◼]
PigpenCipher
[str1],
[◼]
PigpenCipher
[str2]
In[]:=
,
Out[]=
Overlapping the
Graphics
objects interleaves the characters and reveals the message:
Show
[◼]
PigpenCipher
[str1],
[◼]
PigpenCipher
[str2]
In[]:=
Out[]=
Make a drawing using
PigpenCipher
:
[◼]
PigpenCipher
[" h h \n i g i g\n i b g\n c a\n c a\n c a\n c a\n b"]
In[]:=
Out[]=