Why you shouldn't paste raw .env keys into ChatGPT (and how to sanitize them locally)
Описание и применение
Разработчики часто случайно вставляют секреты в окна LLM, что приводит к их утечке. CleanPrompt — клиентский инструмент, который удаляет секреты в браузере, не отправляя данные на серверы.
Задача
Developers often accidentally paste sensitive environment variables into LLM prompt windows, exposing secrets to third‑party servers.
Результат
Secrets are removed locally without any network traffic, preventing accidental leakage to LLM providers.
Рабочий процесс
- 1. Open CleanPrompt in the browser. 2. Paste code or text containing secrets into the left pane. 3. The tool detects secrets using regex and masks them. 4. Choose a replacement style (redacted tag, asterisks, or mock env variable). 5. Copy the sanitized output from the right pane. 6. Paste the sanitized text into the LLM prompt.
- 7. The LLM processes the prompt without receiving any raw secrets.
Доказательства
I built CleanPrompt — a lightweight, zero‑leak prompt and code sanitizer.
100% Client‑Side RAM: Detection and token masking run purely via in‑memory Regex inside your browser session.
- Дата записи: 2026-09-02T14:27:28.642Z