Show HN: Hexlock – Replace PII in text with fake data that has the same format
Category: library
Tags: pii, privacy, llm, anonymization, data-masking
Score: 5.5/10 (Innovation: 5, Technical: 6, Documentation: 5, Utility: 6)
Hexlock is a Python library that anonymizes PII in text by replacing it with format-preserving fake data before sending to LLMs, then rehydrates responses to restore original data. Its interest lies in addressing privacy risks in LLM pipelines while maintaining data utility for the model.
Target audience: backend devs, data engineers, security
Repository: https://github.com/ttarvis/hexlock · C · Apache-2.0
View on Hacker News