KUROGATE 黒門

Redact PII at the gate

Verify NTA corporate numbers and MyNumber check digits locally, mask sensitive spans into reversible slips, and transmit zero bytes anywhere.

Japanese accounting classification rubber stamps stacked beside an inked ledger impression Kraft paper envelope sealed across the flap with a Japanese black ink sealing stamp Japanese postal envelope bearing an express stamp and seven-digit postal code grid
Japanese office stamps & sealing records External runtime calls: 0

Live redactor workbench

Paste invoices, MyNumber, bank accounts, or TSV ledgers. Every mask and check digit computes inside this tab with zero network calls.

0 external requests · Offline engine ready
Raw Japanese Input
Target Columns:
Masked spans 0
Check-digit verified 0
Vault tokens 0
Injection risk 0.00
Sanitized Output & Vault
Token Rule Chars Status
Custom Enterprise Dictionary(社内固有名詞・取引先・案件名 : saved in localStorage)

Verify before leaving

1-to-1 Map
Check Digits
Injection Screen
Vault Swap

First, full-width characters map 1-to-1 to preserve exact UTF-16 spans.

Second, NTA Mod-9, MIC Mod-11, and Luhn eliminate order-number false alarms.

Third, multilingual override phrases and hidden zero-width controls are scored.

Fourth, deterministic slips mask prompts now and restore replies later.

Built for Japanese text

Mixed full-width invoices, accounting stamps, and tabular ledgers stay exact.

Japanese rotary rubber date stamp showing inked numerals 24.10.23 on paper
Modulo check-digit stamps Invalid 12- and 13-digit serials pass untouched while verified IDs seal cleanly.
[INVOICE_ID_1]
Reversible slip tokens Same corporate entity keeps one deterministic token across prose and CSV rows.
0 KB
Zero telemetry No server or API calls.
Accounting category rubber stamps stacked on grid ledger paper
Batch TSV & CSV ledgers Select target columns and keep headers intact across multi-row vendor sheets.
Edo period sumi ink calligraphy on paper bearing red seal impressions
Business text normalization Half-width katakana, wave dashes, and BiDi markers unify cleanly.
JIS Q 27001
ISMS & P-mark logs Export JSON and Markdown audit records with zero plaintext PII.

Nine verified rules

Shared identically between this browser workbench, the Manifest V3 Chrome extension, and our Node test suite.

  • NTA Modulo-9

    13-digit Corporate Numbers and T+13 Qualified Invoice IDs across full-width, half-width, and hyphenated formats.

  • MIC Modulo-11

    12-digit Japanese MyNumber verification including remainder 0 and 1 check-digit edge cases.

  • Luhn Payment Cards

    14- to 19-digit payment card check-digit verification rejecting repeated uniform digits.

  • Japanese Bank Accounts

    Matches 普通, 当座, 貯蓄, and 定期 seven-digit account notations with full-width tolerance.

  • Domestic & +81 Contact

    Detects 10- and 11-digit Japanese phone lines, international +81 numbers, 〒 postal codes, and emails.

  • Prompt-Injection Screen

    Scores 8 English and Japanese instruction-override rules, role delimiters, Base64 blobs, and zero-width BiDi traps.

Run inside Chrome

Install the Manifest V3 extension to scrub prompts directly inside ChatGPT, Claude, and Gemini using the exact same local engine.

  1. Download kurogate-chrome-extension-v1.0.0.zip from GitHub Releases and unzip locally.
  2. Open chrome://extensions and enable Developer mode.
  3. Click Load unpacked and select the extracted extension/ folder.
  4. Use the corner 黒門 controls on supported LLM tabs to redact prompts and restore replies.
Manifest V3 Permissions
Permissionsstorage, activeTab
External hostsNone (0 domains)
Supported tabsChatGPT · Claude · Gemini
Engine Parity
Shared modulekurogate-engine.mjs
Automated tests10 / 10 passing
LicenseMIT (Free forever)

Download KUROGATE v1.0.0 for Chrome (Manifest V3, MIT license, zero telemetry).

INSTALL