Unveil

Code

Messages hidden in plain sight, in words, invisible characters, pixels, sound, printed dots, stacked transparencies, DNA and the bytes of files, and the analyses that find them.

Text Stego

Four ways to hide in text: zero-width characters, Matthew Kwan’s SNOW whitespace (read and written byte for byte), Cyrillic homoglyphs, and Trithemius’s 384 word tables (1518). Inspect finds what does not show: invisible characters, tags, mixed scripts and confusable letters by Unicode’s UTS #39, and compares the normalization forms. Canary copies marks a copy a recipient; Inspect names the marks.

Terms

History, how it works, how it was checked, limits

History

Trithemius’s Polygraphia (Basel, 1518) gave 384 tables of Latin words, so that the secret reads as a prayer. Matthew Kwan’s SNOW hides bits in the spaces and tabs at line ends (1997). Unicode’s format characters take no room on screen, and Unicode Technical Standard #39 lists letters of other scripts confusable with Latin ones.

How it works

Zero-width writes each bit of the message’s UTF-8 as U+200B or U+200C, the bytes joined by U+200D and framed by U+FEFF. Whitespace ports SNOW: three bits at a time become 0 to 7 spaces at a line’s end. Homoglyphs carry one bit in each occurrence of the 24 Latin letters that have a Cyrillic twin. Ave Maria writes the k-th letter as its word in table k. Inspect marks invisible, directional, tag and selector characters, odd spaces and line-end whitespace, decodes the schemes it knows, and by UTS #39’s confusables marks words of mixed scripts, words that read in another script and styled letters; it compares the four normalization forms. Canary copies gives each recipient a copy with its number in invisible marks, which Inspect names. A zero-width message’s line is drawn, each invisible character a gold mark, with the bytes and letters they spell.

How it was checked

Six files written by SNOW 20130616 itself, with and without compression, passwords and narrow lines, are read and written byte for byte. The tables, transcribed from the Wellcome copy, were set against the scan’s OCR, and all 285 disagreements among 9,216 words read on the page. The 77-word prayer of Trithemius’s own Clavis reads back as “Caue tibi ab isto uiro…”, one letter off where the Clavis prints caelis for celestibus; UTS #39’s examples and UAX #15’s figures are reproduced.

The tests hold 74 checks of this tool; 15 rest on outside material, the first eight here:

  • Another’s computation SNOW reads plain.txt (no options)
  • Another’s computation SNOW writes plain.txt byte for byte
  • Another’s computation SNOW reads comp.txt (compress=true)
  • Another’s computation SNOW writes comp.txt byte for byte
  • Another’s computation SNOW reads enc.txt (compress=true, password=hunter2)
  • Another’s computation SNOW writes enc.txt byte for byte
  • Another’s computation SNOW reads enc1.txt (password=x)
  • Another’s computation SNOW writes enc1.txt byte for byte

The other 7, and every tool’s checks

Limits

The zero-width and homoglyph layouts are Unveil’s own, and only SNOW takes a password, which stores no check, so a wrong one gives other characters, not an error. Whatever strips zero-width characters or trims line ends destroys the message. Trithemius’s alphabet has 24 letters, j written as i and v as u, and seven words the print repeats within a table leave two letters possible. Inspect’s view shows the first 20,000 characters; a marked word is a sign, not proof, and canary marks do not survive retyping. The message, and a text pasted to be read or inspected, are never saved with a session or put in a share link; the cover text is.