MagicEncoder ( theText ; theCode )
A simple substitution encoder like the Magic decoder ring in cereal boxes.
Average rating: 4.0 (32 votes) Log in to vote
Geoff Wells DataIsland Software LLC http://www.dataisland.com |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
This function takes any text string and encodes it based on the position of letters in the "theCode" string. The example uses theCode "thequickbrownfxjmpdvlazygs ". Note the space at the end of the string. The space can be placed anywhere and will be encoded as the matching letter in the "alpha" string. To work properly both the alpha string and theCode must contain all the letters present in theText.
Use the MagicDecoder funtion to read the encoded string. Note that case is not preserved.
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.