Skip to reading
Buttons, Labels & Text Boxes

Replace characters with a small cipher

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

For a substitution display, enable Use Per-Character Cipher while Password / Cipher Mode is on. Enter a valid JSON object in Cipher Map JSON.

Code example
{"A":"1", "B":"2", "C":"3"}

With that map, entering ABC displays 1 2 3, with the chosen custom spacing. The saved/read input remains ABC. A source letter not listed in the map uses the normal mask fallback.

Figure 27. The cipher has its own switch and map. Its keys are source characters, with case-sensitive matching.

Source table from Replace characters with a small cipher, page 35
Map entryDisplay replacement
"A":"1"Ordinary replacement text.
"B":{"text":"!"}Text supplied by an object entry.
"C":"{ID:key_icon}"The imported image asset key_icon.
"D":{"assetId":"wheel_icon"}An image supplied by an object entry.

Use the exact imported image ID. The {ID:...} form belongs to the cipher map; it is not a general wildcard that inserts an image into every ordinary Label.

A lowercase a and uppercase A are different source keys. Add both if you want both to use the same mark. Use wide enough fields for custom symbols/images, and keep an ordinary readable test before adding elaborate artwork.

Page 35 of 46Permalink
Go to page