Skip to main content

A powerful GUI tool for obfuscating and deobfuscating code strings with clipboard integration

Project description

CodeBlur

A powerful GUI tool for obfuscating and deobfuscating code strings with intelligent clipboard integration. Perfect for anonymizing code samples, protecting sensitive information, or sharing code snippets safely.

Features

  • 🎨 Clean Neubrutalist UI - Modern, minimalist design with bold colors
  • 🔄 Auto-Obfuscate Strings - Automatically replace all string literals with AI-like identifiers
  • 🗑️ Remove Comments - Strip comments from code in all major languages
  • 📋 Clipboard Integration - Ctrl+V to load, one-click to copy
  • ↩️ Undo Support - Ctrl+Z to undo up to 20 actions
  • 🎯 Click to Obfuscate - Click any word to obfuscate/deobfuscate it
  • 💾 Persistent Mappings - Mappings saved automatically for consistency
  • 🟢 Deobfuscate Button - Restore original text with one click

Installation

pip install codeblur

Usage

Launch the application:

codeblur

Or run from Python:

from codeblur import main
main()

Keyboard Shortcuts

  • Ctrl+V - Load text from clipboard
  • Ctrl+Z - Undo last action

Buttons

  • COPY AND CLOSE - Copy obfuscated text to clipboard and exit
  • AUTO-OBFUSCATE STRINGS - Automatically obfuscate all string literals
  • REMOVE COMMENTS - Remove all comments from code
  • DEOBFUSCATE - Show and copy deobfuscated text (restores original strings)
  • CLEAR - Clear all mappings (2-click confirmation)

Supported Languages

Comment removal works with:

  • C, C++, C#, Java, JavaScript, Go, Rust, Swift, Kotlin
  • Python, Ruby, Perl, Shell scripts
  • HTML, XML
  • SQL, Lua, Visual Basic

How It Works

  1. Load Code: Press Ctrl+V or paste code into the editor
  2. Obfuscate: Click "AUTO-OBFUSCATE STRINGS" or click individual words
  3. Remove Comments: Optional - click "REMOVE COMMENTS"
  4. Copy: Click "COPY AND CLOSE" to copy and exit
  5. Deobfuscate: Click "DEOBFUSCATE" to restore original text

Example

Before:

var response = await client.GetAsync("/api/users");
// Fetch user data
Console.WriteLine("Request completed");

After Auto-Obfuscate:

var response = await client.GetAsync("PERSON001");
// Fetch user data
Console.WriteLine("ID001");

After Remove Comments:

var response = await client.GetAsync("PERSON001");
Console.WriteLine("ID001");

Features in Detail

Auto-Obfuscate Strings

  • Skips interpolated strings (preserves {variables})
  • Skips strings inside comments
  • Generates identifiers like PERSON001, ENTITY042, ORG003
  • Consistent mapping - same string always gets same identifier

Click to Obfuscate/Deobfuscate

  • Click any word to obfuscate it
  • Click an obfuscated identifier to restore original
  • Blue highlighting shows obfuscated text

Undo System

  • Tracks up to 20 actions
  • Restores both text and mappings
  • Press Ctrl+Z to undo

2-State Clear Button

  • First click: Button turns red "CONFIRM CLEAR?"
  • Second click: Executes clear operation
  • Auto-resets after 3 seconds

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codeblur-1.0.4.tar.gz (40.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codeblur-1.0.4-py3-none-any.whl (39.0 kB view details)

Uploaded Python 3

File details

Details for the file codeblur-1.0.4.tar.gz.

File metadata

  • Download URL: codeblur-1.0.4.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for codeblur-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3012d22a1a5581093ec7c5348cd8eb0a254dcfcec84172b6910d5dbcc3edbb5a
MD5 1c68bbc4338dcfe3b4eba9446cf8783b
BLAKE2b-256 6c704f32123b0603bc90b6b0db259f085bfa755f4da4687940ea3615dc9a04aa

See more details on using hashes here.

File details

Details for the file codeblur-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: codeblur-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 39.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for codeblur-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4455011c81e37cdeb26ea3970ce2d90eaa0a23fd902982e1b98d8fae568e356d
MD5 c0f0a28c191f00715ef740731cf7a987
BLAKE2b-256 8ed2ac90f41a8befa0668e80290d7b3b5f345fb2937707df82f42777fccc518b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page