gerry_cipher v0.1.0 GerryCipher
Documentation for GerryCipher, an encoder based on the Ugly Gerry typeface Upper and lower case letters are the two letter US state abbreviation (in upper and lower case, respectively) and their two digit districts. If a letter was comprised of multiple districts, the one on the left/top corresponds to the code for the uppercase letter and the one on the right/bottom is the code for the lowercase letter. Since 'M' and 'W' are reflections of each other, the codes for 'W' (80YN) and 'w' (80yn) are the reverse of 'M' (NY08) and 'm' (ny08).
Since Ugly Gerry did not provide digits, the ten largest congressional districts by area were used for the digits 1..9,0. The '+' and '/' seen in base64 encoding become Puerto Rico and Washington DC, the two longest non-voting representatives.
Link to this section Summary
Link to this section Functions
encode_alpha_numeric(str)
Encode alpha-numeric strings in Gerry Cipher.
Examples
iex> GerryCipher.encode_alpha_numeric("Attack at dawn")
"CA03ca43ca43tx35ct01al01 tx35ca43 mo08tx3580ynil11"
encode_bytes(data)
Encode raw binary data in Gerry Cipher.
Examples
iex> GerryCipher.encode_bytes("Hello world")
"TN04OH04NJ05tn04oh07OH04NE03oh04mo08MN01TX23il12oh07OH04TX12"