{"repo":"yemrealtanay/llm-hasher","free":true,"listed":false,"github":"https://github.com/yemrealtanay/llm-hasher","clone":"git clone https://github.com/yemrealtanay/llm-hasher.git","description":"Privacy-first PII tokenization middleware for LLM pipelines — local detection, encrypted vault, zero cloud dependency.","language":"Go","stars":24,"topics":["ai-safety","data-privacy","gdpr","go","llm","middleware","ollama","pii","privacy","tokenization"],"license":"MIT","category":"ai-agents","readme_excerpt":"🔏 llm-hasher Privacy-first PII tokenization middleware for LLM pipelines. Replace sensitive data with opaque tokens before sending to any LLM. Restore original values on the way back. Your vault, your keys. Quick Start · API Reference · How It Works · Contributing --- The Problem You send customer transcripts, support chats, or documents to LLMs for summarization, analysis, or classification. Those texts contain real credit card numbers, home addresses, names, and national IDs — sent in plaintext to a third-party API and potentially stored in your own database. llm-hasher sits between your app and the LLM. It strips sensitive data, sends clean tokens, and puts the real values back in the response. The LLM never sees the actual PII. Your database stores tokens, not plaintext. How It Works Example: The LLM receives the tokenized version — it still understands the context (\"the user provided a CREDIT CARD\") but never sees the real number. When the LLM's response comes back, you send it through /v1/detokenize and get real values back. Features - Local PII detection — uses Ollama running on your own server, no data leaves your infra for detection - Hybrid detection — fast regex for structured types (credit cards, emails, phone numbers, IBAN, IPs) + LLM for contextual types (names, addresses, national IDs, passports) - Encrypted vault — token↔value mappings stored in SQLite with AES-256-GCM encryption, keys never leave the process - Your own IDs — use context id from your domain (","default_branch":null,"files":null,"tree":[],"storefront":"/r/yemrealtanay","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yemrealtanay/llm-hasher/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}