Masking Tool – Confidentiality Shield for CAs Using LLMs
Author : CA Jain Neelukumari Trilokchand
Author : CA Jain Neelukumari Trilokchand
AI MASKING PRO
Tool Summary
A privacy-first assistant that lets accountants use AI on client data without exposing it
Prepared by: CA Neelukumari Jain
AI Masking Pro is a single, self-contained HTML file that runs entirely in the browser — no installation, no account and no server of its own. It protects sensitive identifiers in accounting data before that data is analysed by any AI, and it can restore the real values afterwards, on the same device.
The problem it addresses: accountants want the speed of AI for ledger review and financial analysis, but client data contains GSTIN, PAN, Aadhaar, bank details, emails, phone numbers and names that must not be pasted into a third-party tool as-is.
The user chooses one of three workflows at the start. All three share the same masking engine.
| Workflow | What it does | When to use it |
| Mask only | Protects the data and lets the user download it. The protected text is then used with any AI tool the user already has. An “Unmask an AI response” box brings the AI’s reply back and restores real values locally. | You want to keep using ChatGPT, Claude or Gemini, but safely. |
| Mask + local AI | Protects the data, then sends it to a model running on the same computer through Ollama. The reply can be reviewed and the real values restored afterwards. | Highly confidential work where nothing should be sent to any online service. |
| Financial dashboard | Accepts one or more financial statements, computes ratios and red flags, draws charts, and produces a styled Excel report. An optional step asks the local AI to explain the results. | Reviewing Balance Sheet, P&L and Cash Flow statements. |
In the Mask + local AI workflow, the protected data and the user’s question are sent to Ollama on the same computer. The model is told to treat the data as content, never as instructions, to use masked labels exactly as given, and to answer only from the data supplied.
| Control | Options |
| Model | llama3.2:3b, llama3.2:1b, qwen2.5:1.5b, gemma2:2b |
| Answer length | Turbo — short answer, about 200 tokens (fastest).Balanced — 400 tokens. Detailed — 800 tokens. |
| What is sent | A calculated summary of the protected data (fast, default), or every protected row, capped for speed. |
| Question templates | Overdue receivables, GST review, Unusual entries, Draft client email. |
| Live feedback | A thinking indicator, a Stop button, and a meter showing time to first token, total time and speed. |
| Transparency | “View what was sent” shows exactly what the model received. |
| Warm-up | The model can be pre-loaded into memory so the first real question answers faster. |
Setup note: Ollama must be running on the same computer, and the file should be opened from a local web address (not by double-clicking it) with Ollama set to accept requests from the browser. Masking, unmasking, ratios, red flags and charts work without Ollama.
One or more files can be uploaded together (Balance Sheet, Profit & Loss, Cash Flow, or a single file containing several statements). The statement type of each section is detected automatically from its heading. Identifying text is masked before anything reaches the local AI.
All arithmetic is done by plain calculation in the browser. The AI is only ever asked to explain figures that have already been calculated — it does not compute them.
Choosing Excel as the download format builds a multi-tab workbook:
The colour of each ratio cell reflects the figures at the time of export; if a number is edited later in Excel, the formula recalculates but the colour does not change.
| Formats |
| Upload | CSV, TSV, TXT, Excel (.xlsx, .xls, .xlsm), Word (.docx), PDF (text-based). Text can also be pasted directly. |
| Download (protected data and restored output) | CSV, Excel (.xlsx), Word (.docx), plain text — with an option to match the format uploaded. |
| Download (dashboard report) | Styled Excel workbook, or CSV, Word and plain text. |
| Other exports | Reference key (CSV) and audit log (CSV). |
PDF reading extracts text only; a scanned PDF with no selectable text will not read cleanly.
The fingerprint is a simple deterministic check that shows whether data has changed. It is not a cryptographic hash and is intended as an audit aid, not a security control.