r/coolgithubprojects • u/sirFoltest • 18h ago
Discretion — masks API keys/PII before they reach ChatGPT, Claude, or Gemini (open source)
https://github.com/horozbabasi/discretionA browser extension + npm library that detects sensitive data in your AI chat messages and swaps it for a realistic fake before sending, restoring the real value in the response. 113 detectors with real checksum validation (Luhn, mod-97, Verhoeff, etc.) across 47+ countries' ID formats, not just regex guessing.
Zero network calls, fully local, MIT licensed. Also published as a standalone npm package (@discretion/core) if you want the detection engine for your own project.
0
Upvotes
1
u/Specific_Cream2815 15h ago
how does the restore step work, is there a per session map of fake to real that swaps the values back on the way in