Skip to content
Setu সেতু Docs
Englishবাংলা中文

Getting started

  • What is Setu
  • Roles and sign-in
  • Creating your account
  • Simulated sandbox
  • Two-minute tour

Buyer guide

  • Buyer verification requirements
  • The dashboard
  • Creating an order
  • Deal detail and milestones
  • Funding the escrow
  • Releasing payments and approvals
  • Cash flow, alerts and what-if
  • Financing comparison and applying
  • Order analysis
  • Landed cost calculator, monthly summary and supplier scorecard
  • Documents and the hidden-text reveal
  • Suppliers and KYB badges
  • USD vs CNY payment and FX rate lock
  • Chat assistant
  • Check a suspicious email
  • Credit records and signed receipts
  • Settings, language and team members

Supplier guide

  • Supplier verification requirements (中文)
  • Supplier portal overview
  • Confirm the payment milestones
  • Upload documents
  • Payments received
  • Change your payout account
  • Why a document needs attention
  • Your company team

Admin guide

  • Admin console overview
  • Audit log and chain verification
  • Exporting the operation log
  • Risk decisions and policy
  • Document registry and duplicate detection
  • Privacy dashboard
  • Security and injection events
  • Admin: reviewing verifications
  • Knowledge base re-index
  • Evaluation harness and results
  • Demo sandboxes and reset

Judge guide

  • Five-minute guide
  • Guided demo
  • Playgrounds and scam simulator
  • Verify the audit log
  • How each requirement is met

Security & trust

  • Why code decides, not the AI
  • Permission tiers 0 to 3
  • Privacy masking
  • Documents and emails are data, not instructions
  • The signed, hash-chained audit log
  • What is simulated and what is real
  • Why Setu asks for these details

FAQ

  • Frequently asked questions

Glossary

  • Glossary

Loading…

  1. Documentation
  2. ›
  3. Security & trust
  4. ›
  5. Privacy masking

Privacy masking

What the Privacy Gateway hides before any text reaches an AI model, and what it does not hide.

BuyerSupplierAdminJudgeLast updated 2026-10-20

What it is

The Privacy Gateway sits in front of every model call. It replaces personal and sensitive financial identifiers with placeholder tokens. The AI sees the tokens. Setu's own code keeps working on the real values and puts them back in the final answer.

Masking is a form of privacy masking: a bank account number becomes a token such as ⟦ACCT_1⟧.

What gets masked

TypeExamples
National IDBangladesh NID numbers
PassportPassport numbers
PhoneBangladesh and China mobile numbers
Bank accountAccount numbers, IBAN (with a checksum test), SWIFT/BIC codes
EmailEmail addresses
Person namesNames already known to Setu, and lines labelled "Account holder" or "Beneficiary"
AmountsAmounts in documents and money values in tool results (on by default)

Detection copes with tricks: Bangla and Chinese digits, zero-width characters, and digits split by spaces.

How it works

  1. Mask

    Before a model call, the gateway swaps each sensitive value for a token. The same value always gets the same token inside one request.
  2. Re-scan

    The outgoing text is scanned again. A value that slipped through is counted as a leak and masked.
  3. Call the model

    The model reads and answers using tokens only.
  4. Restore

    Setu's code replaces tokens with the real values in the answer you see.

The map between tokens and real values (the "vault") lives in memory for one request. It is never stored, logged or sent to the model.

What the results mean

  • With amounts masked, the model cannot add or compare amounts. The numbers in an answer are tokens restored by code.
  • Setu's tools work on real values. Only the model sees masked text.
  • Stored privacy records keep the masked text and counters, never the vault.

Limits

Known limits

Company names, addresses and goods descriptions are not treated as personal identifiers. Detectors use patterns and validation, so an unlabelled 16-digit number in free chat text is not masked. Tokens from earlier chat turns cannot be restored in later turns and show as "[protected ACCT]".

Related security notes

Security

Admins and judges can see masking activity on the admin privacy page at /app/admin/privacy, and try it on sample text in the privacy playground at /demo/privacy-playground. The playground does not store anything or call a model.

Related pages

  • Why code decides
  • Documents and emails are data
  • Glossary
← PreviousPermission tiers 0 to 3Next →Documents and emails are data, not instructions

Was this page helpful?

← Documentation

On this page

  • What it is
  • What gets masked
  • How it works
  • What the results mean
  • Limits
  • Related security notes
  • Related pages