@yemrealtanay3
Yunus Emre AltanayDeveloper▲5
Software Engineer II, Iceberg Digital
1h ago · Ship · Agents · Ankara

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.

LLM-Hasher@yemrealtanay/llm-hasher · yemrealtanay.github.io/llm-hasher

Comments

No comments yet
Start the conversation.
Log in to join the thread.