Text / Stamp

Hide a tag in text

The output renders byte-for-byte identically to the input — the payload lives in zero-width Unicode characters. Add a secret key to make the mark forge-resistant.

Text / Check & verify

Look for hidden tags

Paste anything. The scanner finds every checksum-verified mark (emoji-safe), authenticates signatures against your key, and can strip marks out.

Image / Stamp

Hide a tag in pixels

The payload is written into the least-significant bits of R/G/B — every channel shifts by at most 1/255 — and repeated up to 512× so local damage rarely kills every copy. PNG output only; JPEG erases it.

▣ Drop an image here, or click to choose PNG in, PNG out · processed locally, never uploaded

Image / Check & verify

Look for a hidden tag

Scans every redundant copy; if all copies are individually damaged it falls back to bitwise majority voting across them. Signatures verify against your key. You can also erase a tag in place.

⌕ Drop an image here, or click to choose PNG only — lossy formats can't carry LSB tags

Detect others / Scan text

Find hidden payloads from any tool

The other tabs ask "is my mark here?". This one asks the broader question: has anything hidden a payload in this text? It looks for foreign zero-width payloads, invisible TAG-block smuggling, homoglyph substitution, variation-selector data and bidi tricks — not just Slark's own format.

Detect others / Scan image

Find watermarks other generators left behind

Reads the DWT-DCT frequency-domain mark that Stable Diffusion embeds by default, looks for redundant LSB payloads from any steganography tool, checks the LSB plane for statistical anomalies, and reads C2PA / XMP / PNG metadata that names the generating tool.

Drop an image here or click to choose · analysed entirely in your browser
Image to scan

Tools / Inspector

Zero-width character inspector

See the invisible. Every zero-width character in your text is rendered as a visible chip — including ones that aren't Slark marks (emoji joiners, stray ZWSPs from web copy-paste).

Tools / Robustness lab

Will the tag survive?

Each card applies a real transformation to your actual stamped content from the Stamp tabs — right now, in this browser. Not claims; mechanics.

Text tests

no stamped text yet — visit Text / Stamp

No change

Control group — untouched. Should always pass.

—

Zero-width filter

Strips ALL zero-width characters — what blunt sanitizers do.

—

Unicode NFKC

Standard compatibility normalization pass.

—

HTML round-trip

Through a DOM text node and back — HTML-based editors.

—

Emoji ZWJ neighbors

Surrounds the text with 👨‍👩‍👧 and 🏳️‍🌈 — built from the same joiner the tag uses.

—

Truncate 50%

Keeps only the first half of the text — survives if the mark sits in it.

—

Manual retype

Only the visible characters, as if typed fresh by a human.

—

Image tests

no stamped image yet — visit Image / Stamp

No change

Control group — untouched PNG. Should always pass.

—

JPEG q85

Lossy DCT compression rewrites low-order bits wholesale.

—

Resize 75% → back

Resampling invents new pixels; original bit positions vanish.

—

Brightness +6%

Tiny for eyes, fatal for least-significant bits.

—

Cover ~18%

Opaque box over part of the image — redundancy should save it.

—

Sparse noise

Flips one LSB in every copy region — no copy intact, majority vote to the rescue.

—

Tag survival ✓/✗ is decided by running the real decoder on the transformed content. Image results also report when recovery needed the majority-vote path.

About

How Slark works

Slark (ស្លាក — Khmer for "tag") attaches invisible, checksum-verified provenance payloads to text and PNG images. This console is a faithful browser port of the pip install slark Python package — formats are byte-identical both ways.

Text format

CharCodepointMeaning
ZWSPU+200Bbit 0
ZWNJU+200Cbit 1
ZWJU+200Dstart/end sentinel

Frame: [2B length][4B CRC32][JSON], inserted after the first whitespace. The decoder scans every sentinel pair and only believes checksum-verified spans — emoji ZWJ sequences can't break it.

Image format ("SLK1")

BytesField
4magic "SLK1"
2payload length (BE)
4CRC32 of payload (BE)
≤256JSON payload

Written MSB-first into R/G/B LSBs, repeated in up to 512 evenly spaced chunks. Decode scans every copy, then falls back to bitwise majority voting across copies.

Signed marks

With a secret key, the payload gains sig — the first 8 bytes (hex) of HMAC-SHA256 over the canonical JSON of the other fields. Verification states:

  • signed — signature valid for your key
  • invalid — sig present but wrong (forged / tampered / wrong key)
  • unsigned — mark carries no signature
  • none — no mark at all

Honest limitations

  • Zero-width chars get stripped by many real-world pipelines (chat UIs, sanitizers).
  • Doesn't survive retyping, translation, OCR, or screenshots.
  • LSB image tags die on any lossy re-encode (JPEG/WebP/platform re-uploads).
  • Anyone who knows the technique can strip a tag; the HMAC only prevents forging one.
  • For adversarially robust AI-text watermarking you need statistical watermarks at generation time — a different, heavier approach.

CLI quick reference

pip install "slark[image]"

slark encode --text "Hello world" --model claude-sonnet-5 --key SECRET
slark decode --file out.txt --json          # --all for every mark
slark verify --file out.txt --key SECRET    # signed | invalid | unsigned | none
slark strip  --file out.txt                 # emoji-safe; --aggressive for all ZW
slark encode-image --file p.png --key SECRET --output out.png
slark decode-image --file out.png --json    # --no-vote to disable majority voting
slark verify-image --file out.png --key SECRET
slark strip-image  --file out.png --output clean.png
slark capacity --file p.png                 # copies / capacity report