<Person_1> — never real names, emails, or addresses.
Key GDPR Requirements for AI Applications
Data Minimization (Article 5(1)(c))
Data Minimization (Article 5(1)(c))
Requirement: Only process the minimum personal data necessary for the purpose.Risk with AI: Sending full user messages to an LLM means the AI provider processes all personal data in the text — far more than necessary.With Blindfold: PII is replaced with tokens before the AI call. The LLM only receives what it needs to generate a useful response, without real personal data.
Purpose Limitation (Article 5(1)(b))
Purpose Limitation (Article 5(1)(b))
Requirement: Data collected for one purpose must not be used for another.Risk with AI: AI providers may log, train on, or analyze the personal data you send them.With Blindfold: Since only tokens reach the AI provider, there’s no real personal data to repurpose.
Cross-Border Transfers (Articles 44-49)
Cross-Border Transfers (Articles 44-49)
Requirement: Personal data transfers outside the EU/EEA require adequate safeguards (Schrems II ruling).Risk with AI: Most LLM providers (OpenAI, Anthropic) process data in the US, triggering Chapter V transfer rules.With Blindfold: Use the EU region (
region="eu") — PII is tokenized on EU servers. Only anonymized tokens cross borders, which are no longer personal data under GDPR.Right to be Forgotten (Article 17)
Right to be Forgotten (Article 17)
Requirement: Data subjects can request deletion of their personal data.Risk with AI: Data sent to AI providers may be retained in their logs and training data — deletion is impossible.With Blindfold: No real personal data reaches the AI provider. For your own records, use
redact() to permanently remove PII.Data Processing Agreements (Article 28)
Data Processing Agreements (Article 28)
Requirement: Formal agreements must exist between data controllers and processors.With Blindfold: Since tokenized data is no longer personal data, your DPA requirements with AI providers are simplified. Blindfold offers its own DPA — contact hello@blindfold.dev.
How Blindfold Maps to GDPR
| GDPR Article | Requirement | Blindfold Feature |
|---|---|---|
| Art. 5(1)(c) | Data minimization | Tokenization removes PII before AI calls |
| Art. 5(1)(b) | Purpose limitation | AI provider never receives real data |
| Art. 17 | Right to erasure | redact() permanently removes PII |
| Art. 25 | Data protection by design | SDK-level PII protection in your pipeline |
| Art. 30 | Records of processing | Audit logs track all PII operations |
| Art. 32 | Security of processing | encrypt() with AES-256 for storage |
| Art. 44-49 | Cross-border transfers | EU region ensures PII stays in Europe |
EU Region + gdpr_eu Policy
Region Selection
Use the EU region to ensure personal data is processed on EU-based servers:What gdpr_eu Detects
The gdpr_eu policy covers all GDPR Article 4(1) personal data types:
| Entity Type | Examples |
|---|---|
| Person | Hans Mueller, Marie Dupont |
| Email Address | hans.mueller@example.de |
| Phone Number | +49 170 1234567 |
| Address | Berliner Str. 42, 10115 Berlin |
| IBAN | DE89 3704 0044 0532 0130 00 |
| National ID Number | Country-specific national IDs |
| Passport Number | C01X00T47 |
| Tax ID | Country-specific tax identifiers |
| Date of Birth | 15/03/1985 |
| Credit Card Number | 4532-7562-9102-3456 |
| Bank Account Number | Account numbers |
| IP Address | 192.168.1.100 |
| Health Insurance Number | Insurance identifiers |
| Medical Condition | Diagnoses, symptoms |
Code Examples
Tokenize Before Sending to OpenAI
The most common pattern: protect EU user data before any AI API call.Right to be Forgotten (Article 17)
When a data subject requests deletion, useredact() to permanently remove their PII:
Batch Processing Support Tickets
Process multiple EU support tickets in a single API call:Data Residency
When you useregion="eu":
- Processing: PII detection runs on EU-based servers at
eu-api.blindfold.dev - No cross-border transfer: Personal data never leaves the EU during processing
- Tokens are not personal data: The anonymized output (
<Person_1>) can safely cross borders - Your API key works globally: No separate keys needed per region
Audit Trail for DPAs
Every Blindfold API call is logged in your audit trail, providing documentation for Data Processing Agreements:- What was detected: Entity types and counts per request
- When: Timestamp of every PII operation
- Which policy: The detection policy used
- Processing region: EU or US
Cookbook Example
For a complete, runnable GDPR + OpenAI integration, see the cookbook:GDPR + OpenAI Python Example
Full working example with EU region,
gdpr_eu policy, single queries, and batch ticket processing.GDPR Compliance Checklist
Use this checklist when integrating Blindfold for GDPR compliance:Apply the gdpr_eu policy
Use
policy="gdpr_eu" on all tokenize/redact/encrypt calls handling EU data.Implement Right to be Forgotten
Use
blindfold.redact() to permanently remove PII when data subjects request deletion.Sign a DPA with Blindfold
Contact hello@blindfold.dev to sign a Data Processing Agreement.