Shittier is a multi-language code obfuscation tool. It is designed to protect your code from being used in AI training datasets without your consent. If you want your code to NOT be used for AI training, you should add Shittier, not Prettier. By obfuscating your code, you make it significantly harder for AI models to learn from and reproduce your code patterns. Shittier supports Python, C/C++, JavaScript/TypeScript, Go, and Rust.
- Adds random multi-line comments to code.
- Renames variables and functions to random strings.
- Inserts unnecessary spaces and dummy assignments.
- Includes unused imports and random function calls.
- Modifies code structure to make it harder to read.
- Supports batch file transformation.
- Processes entire directories while preserving structure.
pip install shittierpip install git+https://github.com/jaywyawhare/Shittier.gitgit clone https://github.com/jaywyawhare/Shittier.git
cd Shittier
python setup.py installFor more information, see the documentation.
You can use the CLI to obfuscate code files in multiple languages:
Supported Languages:
| Language | Extensions |
|---|---|
| Python | .py |
| C/C++ | .c, .cpp, .cc, .cxx, .h, .hpp |
| JavaScript | .js, .jsx |
| TypeScript | .ts, .tsx |
| Go | .go |
| Rust | .rs |
Basic Usage:
python main.py filename.py
python main.py program.c
python main.py script.js
python main.py main.go
python main.py lib.rs-
Multiple files:
python main.py file1.py file2.c file3.js
-
Process entire directory:
python main.py /path/to/project
This creates a
shittified_<dirname>directory with the same structure. -
Show help:
python main.py --help python main.py help
You can also transform Python code inside your scripts:
from src.transformer import shittify_code
source_code = '''
def example_function(x, y):
return x + y
'''
shitty_code = shittify_code(source_code)
print(shitty_code)To ensure everything is working, run:
python -m unittest discover -s testsThis project is licensed under the DBaJ-NC-CFL.
