What this tool does
This is a whitespace steganography encoder and decoder. It conceals a secret message inside a block of trailing spaces and tabs that is invisible when the text is displayed normally. The visible “cover” text looks ordinary; the secret rides along in the whitespace after it.
How it works
Encoding is a straightforward binary mapping:
- Each character of the secret is converted to its 8-bit binary value.
- Each bit becomes a whitespace character:
0→ space,1→ tab. - The resulting run of spaces and tabs is appended to your cover text.
Because trailing spaces and tabs render as empty space, the message hides in plain sight. Decoding reverses it: the tool scans the trailing whitespace, reads each space as 0 and each tab as 1, regroups the bits into bytes, and reconstructs the characters.
Example
The letter A is 01000001 in binary. Encoded, that is:
space tab space space space space space tab
eight invisible characters that decode straight back to A.
Notes
- Steganography conceals, it does not encrypt — anyone aware of the scheme can read the payload.
- Trailing whitespace is fragile: editors and chat apps that auto-trim lines will silently destroy the hidden data, so verify your delivery channel first.
- For non-ASCII secrets, encode to UTF-8 beforehand; the tool flags characters whose code is above 255.