Back to browse
GitHub Repository

PII redaction that preserves data format, tokenized values stay usable in LLM pipelines

7 starsC

Hexlock – Replace PII in text with fake data that has the same format

by lemaudit·Apr 30, 2026·5 points·0 comments

AI Analysis

●●SolidSolve My ProblemShip It

Format-preserving PII replacement lets LLMs process data without seeing real values.

Strengths
  • Rehydrates original data in LLM responses using secure session keys.
  • Ephemeral mode allows quick testing without persistent key management overhead.
Weaknesses
  • Format preservation alone may not prevent all inference attacks on sensitive data.
  • Competes with mature enterprise DLP solutions already integrated into major LLM providers.
Category
Target Audience

Developers integrating LLMs with sensitive user data

Similar To

Microsoft Presidio · Tonic.ai · Mostly AI

Similar Projects