
Obfuscates Go source code via AES-256 string encryption with runtime decryption, identifier renaming, and comment removal to hinder reverse engineering while preserving runtime behavior.

GoBfuscator is a professional-grade obfuscation tool specifically designed for Go (Golang) source code. It provides multiple layers of protection to make reverse engineering difficult while maintaining 100% runtime functionality.
Key Features:
git clone https://github.com/luftwaffe66/GoBfuscator.git
cd GoBfuscator
pip install -r requirements.txt
python3 obfuscator.py yourfile.go
This will generate yourfile_obfuscated.go with all protections applied.
Identifier Renaming:
String Encryption:
Code Cleanup:
| Operation | Original | Obfuscated | Overhead |
|---|---|---|---|
| Startup Time | 12ms | 15ms | +25% |
| Memory Usage | 8.2MB | 8.5MB | +3.6% |
| Runtime Performance | 1.0x | 1.0x | 0% |
Tests performed on Go 1.19, Intel i7-1185G7, 16GB RAM
steps:
- name: Obfuscate Go Code
run: |
git clone https://github.com/luftwaffe66/GoBfuscator.git
cd GoBfuscator
python3 obfuscator.py $GITHUB_WORKSPACE/main.go
mv main_obfuscated.go $GITHUB_WORKSPACE/main.go
# Preserve specific identifiers
python3 obfuscator.py --preserve "Config,DBConn" main.go
# Custom encryption key (base64)
python3 obfuscator.py --key "dGhpcyBpcyBhIHNlY3JldCBrZXkh" main.go
Parsing Phase:
Transformation Phase:
Output Phase:
We welcome contributions! Please follow these steps:
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the MIT License. See LICENSE for more information.
Project Maintainer - @luftwaffe66
🔐 Protect Your Go Code Today! Star this repo to support the project.