Sign inSign up

shubhamsinghs2/codemask

By shubhamsinghs2

•Updated 2 months ago

A browser-based privacy tool for Masking secret/credentials in code before sending to AI.

Image
Security
API management
Web servers
0

477

shubhamsinghs2/codemask repository overview

⁠CodeMask Web UI

A browser-based privacy tool for safely sharing code, configuration files, and logs with AI assistants.

CodeMask detects sensitive values and replaces them with reversible placeholders before you copy content into ChatGPT, Claude, Gemini, or another AI assistant. When you receive the AI response, paste it back into CodeMask to restore the original values locally.

Everything runs in the browser.

⁠How It Works

Paste code or configuration
      ↓
CodeMask detects sensitive values
      ↓
Sanitize and copy
      ↓
Share sanitized content with AI
      ↓
Paste the AI response back
      ↓
Restore original values locally

Example:

10.20.30.40 → {{IP_1}}

Send the sanitized content to the AI.

If the AI responds with:

Connect to {{IP_1}}

CodeMask restores it locally:

Connect to 10.20.30.40

⁠Features

  • Automatic sensitive-data detection
  • Sanitize and restore modes
  • Reversible placeholders
  • Persistent local registry
  • Manual secret registration
  • Registry export and import
  • Secret blur and reveal
  • One-click copy
  • Dark and light themes
  • No backend required

⁠Quick Start

docker run -d \
  --name codemask \
  --restart unless-stopped \
  -p 8080:80 \
  shubhamsinghs2/codemask:latest

Open:

http://localhost:8080

⁠Privacy

CodeMask Web UI runs entirely in your browser.

  • No backend API
  • No external database
  • No server-side secret registry
  • Sanitization and restoration happen locally

The registry is stored in browser local storage so placeholders can be restored across your workflow.

⁠Source Code & Documentation

GitHub: https://github.com/shubham-singhS2/CodeMask⁠

The GitHub repository contains complete setup instructions, local development steps, Docker usage, architecture details, and project documentation.

CodeMask is a portfolio and learning project. It uses pattern-based detection and is not intended to replace enterprise DLP or secrets-management solutions.

Tag summary

Content type

Image

Digest

sha256:74e31f5ab…

Size

19.6 MB

Last updated

2 months ago

docker pull shubhamsinghs2/codemask