Shipped: LLM-Hasher
llm-hasher is an open-source Go middleware that sits between your app and any LLM. Before a prompt goes out, it detects personal data (names, emails, phone numbers, IDs) and swaps it for tokens. The model never sees the real values. When the response comes back, llm-hasher puts the originals back in place, so your users get a normal answer.
How it works
Detection: fast regex rules plus an optional local Ollama model for context-aware entities, so nothing is sent to a third party just to find PII
Vault: token↔value mappings stored in an AES-256-GCM encrypted SQLite vault
Detokenization: Aho-Corasick matching to restore many tokens in a single pass over the response
Who it's for: teams sending customer data to OpenAI, Anthropic or other hosted models who need a privacy layer without rebuilding their pipeline. Self-hostable, written in Go, MIT/Apache-style open source (lisansı kontrol et).
Contributors and early adopters welcome. Issues and feedback on GitHub.






Comments
0 comments