PII
ZeroLeak Vault
Production-Ready n8n Workflow + Deterministic AES-256-GCM Tokenizer

Stop Leaking Customer PII to OpenAI & Claude.
Mask Before the LLM. Restore Inside Your VPC.

If you simply strip or [REDACTED] customer emails, phone numbers, and SSNs before calling an AI node, your downstream n8n nodes break because they lose the recipient address and customer ID.

ZeroLeak Vault solves this with Deterministic Reversible Tokenization: it swaps sensitive fields with context-preserving cryptographic tokens (<EMAIL_9F4A2C>) before the prompt leaves your server, lets the LLM reason over them accurately, and automatically re-hydrates the real values inside your private n8n execution before updating HubSpot, Stripe, Postgres, or Gmail.

< 4.2ms
Tokenization Overhead
0 Bytes
Raw PII Sent to External APIs
100%
Self-Hosted inside n8n
Test Live Simulator Below ↓
✓ Instant JSON + Python Download ✓ Works on n8n Cloud & Self-Hosted ✓ GDPR, HIPAA & SOC2 Audit Ready
Complete Engineering Kit

What You Download Today

$99
Lifetime License
  • 01
    n8n Reversible PII Masking Workflow (.JSON) Drop-in 4-node sub-workflow: Ingress Tokenizer → Guarded LLM Prompt → Private VPC Detokenizer → Audit Logger.
  • 02
    14 Pre-Built Entity Recognizers Emails, Phone Numbers (Intl), SSN/National IDs, Credit Cards (Luhn validated), IBANs, IPv4/v6, Bearer/API Keys, Street Addresses, & Custom Regex/Presidio hooks.
  • 03
    Multi-Turn Conversation Memory Support HMAC-SHA256 deterministic salting ensures [email protected] maps to the exact same token across multi-step agent tool calls.
  • 04
    Compliance Proof Audit Table (.SQL) Postgres/Supabase schema that logs cryptographic proof that zero raw PII existed in outbound LLM payloads—ready for enterprise security reviews.

Secured by Paddle Merchant-of-Record • Instant Digital Delivery • 14-Day Guarantee

Interactive Proof-of-Work

Test the Reversible PII Tokenizer Live in Your Browser

Select an industry scenario or type your own customer payload below. Watch how the workflow strips every sensitive entity before the LLM sees it—and restores the exact values for your downstream CRM/Email node.

1. Raw Webhook Input (UNSAFE) Contains Raw PII
Detected PII Entities: 5 sensitive fields
2. Payload Sent to OpenAI / Claude Zero PII Exposed
Ephemeral Vault Mapping Table (RAM/Redis):
3. Restored n8n Output (Inside VPC) Ready for CRM / Email
✓ 100% Context Restored ✓ Ready for Gmail / HubSpot Node
The Engineering Problem

Why Standard PII Redaction Breaks Your Automations

Most developers try to solve LLM privacy by replacing emails and names with [REDACTED] before calling OpenAI. Here is why that fails in production workflows:

❌ Approach A: One-Way Regex Redaction (Broken)

The LLM Loses Entity Relationships & Downstream Nodes Crash

When two different people or emails in a support thread are both replaced with [EMAIL], the LLM cannot tell who sent what. Worse, when the LLM outputs a structured JSON tool call to send an email or update Stripe, the recipient field literally says "[EMAIL]" — crashing your n8n execution.

// Downstream Gmail Node Error in n8n:
{
  "to": "[REDACTED_EMAIL]",
  "error": "Invalid recipient address: [REDACTED_EMAIL]"
}
✓ Approach B: ZeroLeak Deterministic Reversible Vault

Referential Integrity Preserved + Automatic Egress Hydration

Each unique PII value is hashed with an ephemeral HMAC key into a unique typed token (<EMAIL_9F4A2C>). The LLM reasons over multiple actors seamlessly. The moment the LLM response returns to your n8n server, Node 4 swaps <EMAIL_9F4A2C> back to [email protected].

// Downstream Gmail Node Succeeds Automatically:
{
  "to": "[email protected]",
  "status": "200 OK — Delivered via Private VPC Hydration"
}
Inside the Workflow

4-Node Zero-Trust Architecture Inside n8n

No external SaaS proxy subscriptions. No sending your data to a third-party "privacy API". Everything runs natively inside your own n8n instance.

NODE 01 • INGRESS

Webhook / Trigger

Accepts incoming payloads from Zendesk, Gmail, Typeform, Slack, or Postgres containing raw customer PII.

NODE 02 • TOKENIZER

AES-256-GCM Vault

Scans text & nested JSON keys across 14 PII patterns. Generates deterministic tokens and stores the encrypted lookup map in execution memory.

NODE 03 • AI AGENT

Zero-Leak LLM Call

Sends only tokenized text to OpenAI, Anthropic, or Gemini. System prompt enforces strict symbolic token preservation in tool calls and JSON outputs.

NODE 04 • DETOKENIZER

VPC Re-Hydration

Restores real customer values inside your server memory and writes a cryptographic zero-leak attestation row to your audit log.

Inspect Before You Buy

Preview the Production Code & Schema

// Node 2: Deterministic HMAC-SHA256 + AES-256-GCM Reversible PII Tokenizer for n8n
const crypto = require('crypto');
const SECRET = $env.PII_VAULT_SECRET; // 32-byte key stored in n8n env

const ENTITY_PATTERNS = {
  EMAIL: /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,
  PHONE: /(\+?\d{1,3}[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}/g,
  SSN:   /\b\d{3}-\d{2}-\d{4}\b/g,
  CARD:  /\b(?:\d[ -]*?){13,16}\b/g,
  APIKEY:/\b(sk-[a-zA-Z0-9]{20,}|ghp_[a-zA-Z0-9]{36})\b/g
};

function maskPayload(rawString, vaultMap) {
  let masked = rawString;
  for (const [type, regex] of Object.entries(ENTITY_PATTERNS)) {
    masked = masked.replace(regex, (match) => {
      const digest = crypto.createHmac('sha256', SECRET).update(match).digest('hex').slice(0, 6).toUpperCase();
      const token = `<${type}_${digest}>`;
      vaultMap[token] = match;
      return token;
    });
  }
  return masked;
}
// Full recursive JSON traversal + Redis TTL persistence + Presidio NLP hook included in download.
Build vs. Buy Math

Save 35+ Hours of Security Engineering

Deploy enterprise-grade LLM data protection in 10 minutes instead of spending a week debugging regex edge cases and nested JSON hydration.

Option 1

Build In-House

~$4,500+
35–45 Engineering Hours
  • • Writing Luhn & international phone parsers
  • • Debugging multi-turn token consistency
  • • Handling nested JSON arrays & tool calls
  • • Building compliance audit schemas
Slow time-to-production
Option 2

Cloud DLP API SaaS

$499/mo
$5,988 / year recurring
  • • Sends raw PII to yet another 3rd-party API
  • • Adds 150ms–400ms network latency
  • • Per-token volume overage charges
  • • Vendor lock-in
High recurring overhead
RECOMMENDED
Option 3 • ZeroLeak Vault

Turnkey n8n Package

$99 USD one-time
Unlimited workflows & executions
  • ✓ Complete n8n Workflow JSON (Ready to import)
  • ✓ 14 Entity Recognizers + Custom Rules
  • ✓ Deterministic Multi-Turn Token Vault
  • ✓ SQL Audit Schema + Setup Guide
  • ✓ Unlimited Commercial Client Use

Frequently Asked Technical Questions

Does this work on both n8n Cloud and Self-Hosted n8n?

Yes. The core tokenizer and detokenizer run inside standard n8n Code nodes using native Node.js crypto with zero external npm dependencies required. For high-scale clusters, an optional FastAPI + Redis container is also included.

What happens if the LLM modifies a token like <EMAIL_9F4A2C>?

The package includes a hardened system prompt instruction block plus a fuzzy-matching fallback parser in the Detokenizer node that catches case shifts or bracket spacing variations automatically.

Can I use this for client workflows if I run an AI automation agency?

Yes! Your $99 license includes unlimited commercial deployment rights across your own internal workflows and paid client installations.