Creator Center
/Tool/Kuronuri-kun (Japanese PII Masking)
app icon

Kuronuri-kun (Japanese PII Masking)

Verified by Dify
No ratings yet
11
K
kuronurikun/kuronurikun

Detect and mask personal information in Japanese text (names, addresses, phone numbers, My Number, bank accounts) before sending it to an LLM, then restore the original values in the answer.

ProductivityUtilities

Kuronuri-kun (Japanese PII Masking)

Author: kuronurikun
Version: 0.1.0
Type: tool
Source repository: https://github.com/mamoruveilworks-hub/kuronurikun-dify-plugin

Overview

Kuronuri-kun detects personal information in Japanese text and replaces it with placeholders such as before the text reaches an LLM. After the LLM answers, it restores the placeholders to the original values. The same person always gets the same placeholder, so the LLM can still follow who is who.

It recognizes Japanese-specific formats that general-purpose detectors often miss: names (with honorifics, job titles, field labels, and a dictionary of common names), addresses, phone numbers, email addresses, postal codes, dates of birth (including Japanese era dates), My Number, bank accounts, credit card numbers, driver's license numbers, passport numbers, basic pension numbers, and health insurance numbers.

Setup

  1. Get a free API key (100,000 characters per month) at https://kuronurikun.com (no credit card required).
  2. Install this plugin from the Dify Marketplace.
  3. Open Tools > Kuronuri-kun and enter your API key (it starts with ). The plugin checks the key without using your quota.

Usage

The plugin provides two tools.

ToolInputsOutputs
Mask personal information (), (tag / block / asterisk / redact), (optional: AGE, GENDER, COMPANY, CARD_EXPIRY), ,
Restore personal information (),

Example chatflow

Tips:

  • Mask before the LLM. Place the mask step in the workflow before the LLM node. Giving the tool to an agent is not enough, because the agent's LLM reads the original text before deciding to call the tool.
  • Do not enable LLM memory in the chatflow, or earlier unmasked messages will be sent to the LLM.
  • Ask the LLM in the system prompt to keep placeholders such as unchanged.
  • Use the same API key for masking and restoring. A expires after 24 hours.
  • Detection is rule- and dictionary-based. It handles common formats well but may miss rare names; review important data by a human as well.

Connection requirements

The plugin calls the HTTPS endpoint ( and ). Your Dify instance must be able to reach this host.

Pricing

Usage is counted by the number of characters masked; restoring is free. Free: 100,000 characters per month. Lite: 980 JPY per month for 1,000,000 characters. Pro: 4,980 JPY per month for 10,000,000 characters. See https://kuronurikun.com/#pricing

Privacy

Text is processed in memory in the AWS Tokyo region and is not stored or logged. See PRIVACY.md.

Support

  • Website and API documentation: https://kuronurikun.com/docs
  • Feedback (missed detections, feature requests): https://kuronurikun.com/feedback
  • Contact: [email protected]
CATEGORY
Tool
VERSION
0.1.0
kuronurikun·Updated 5 days ago
REPOSITORY
https://github.com/mamoruveilworks-hub/kuronurikun-dify-plugin
REQUIREMENTS
Tool invocation
Maximum memory
256MB
Access domain

Some outbound calls build their address at runtime, so the list may be incomplete.

DeclaredDetected
Security
Security Rating

Last checked 11/04/2026 01:26 AM · version 0.1.0

Give a rate
SHARE WITH