Substitute values
Recommended. Each value is replaced with a substitute of the same shape and length. The same party gets the same substitute everywhere in the document, so it stays readable and useful.
MASCDOC · USER GUIDE
Data minimisation, pseudonymisation and security measures are the most asked-about technical duties under KVKK and GDPR. mascdoc applies them inside your document and prompt flow and records every decision.
Unpack the mascdoc-YYYYMMDD.zip file we send you and move the folder wherever you like.
Mac: double-click mascdoc.command. If macOS warns about an “unidentified developer”, right-click the file and choose Open. On first launch the setup prepares Python, the OCR components and the bundled models itself; it takes about 10 minutes and is the only step that needs internet.
Linux server: run ./scripts/install.sh in the folder. Details are in the last section.
A sign-in screen appears on first launch. The administrator password is generated during setup and shown on screen; write it down. Accounts are stored only on this computer.
Checklists sit on the left of the screen and the page itself on the right. Every mask on the page is shown as a coloured box:
1. Possible misses. This sits at the top of the list; look at it first. The model saw these values with low confidence but left them open. If one is truly secret, press Mask.
2. Suspicious pages. Pages that are hard to read, upside down or faint are listed here. Check them by eye.
3. Possibly excess. Masked, but the model is unsure; a value that appears in several places is grouped into one line. You don’t need to touch these for safety. If something that isn’t secret was covered, like a port or contract wording, press Unmask.
Spotted something missed? In the “Original + masks” view, drag with the mouse to draw a box. Clicking a box undoes it.
If you made changes, press Apply changes; the document is masked again from the original copy. Check the result in the “Masked output” tab. When ready, press Approve and download. On approval the original copy is deleted from the job folder.
Recommended. Each value is replaced with a substitute of the same shape and length. The same party gets the same substitute everywhere in the document, so it stays readable and useful.
The value is covered with a black box. For documents a person will read but where no value may be visible.
The letters of the value are replaced with X, keeping its length. For transfers between systems and test data.
The masked document is written to the output folder you choose. Your original document is not changed.
An audit log is kept for every document: which field was found by which method and masked. The shareable summary contains no original values. The full log stays only on this computer, in a folder only you can read.
The masked output is read again to verify it. If anything is doubtful, the document is set aside as a file with INCELEME (review) in its name; it never goes out silently.
OCR, detection and masking run on the same machine. After setup mascdoc sends no requests outside; documents, results and logs stay in your organisation.
The review screen opens only from this computer. Lists that show original values never go into any shareable report.
A cloud OCR or language model is used only if you explicitly choose and approve it; it is off by default.
Server setup (Linux):
unzip mascdoc-YYYYMMDD.zip && cd mascdoc-YYYYMMDD
./scripts/install.sh
.venv/bin/python -m pdf_anonymizer.api --port 8788
By default the server listens only on 127.0.0.1. Listening on any other address requires an access key set with MASCDOC_API_TOKEN.
Other systems send a document with POST /v1/anonymize?filename=belge.pdf and fetch the result with GET /v1/jobs/{id}/file. Jobs that need human approval are opened with &review=1 and appear on the /inceleme screen.
Output that fails verification is not served by the API by default; job folders are deleted after 24 hours. We work with you on installation and network settings: write to us.
Last updated: 5 November 2026 · Version 2026.11.05 beta