← Yunus Emre Altanay's projects
Repo

LLM-Hasher

@yemrealtanayby Yunus Emre Altanay · Iceberg Digital

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.

Built withClaude

Comments · 0

No comments yet. Tried it? Tell Yunus what worked, what didn't, or what you'd want next.
Sign in to comment

More from members

All projects

See what other members are building and what each project is looking for.