Github top language Github stars License

About   |   Features   |   Technologies   |   Requirements   |   Starting   |   License   |   Author

🎯 About

When looking around for python obfuscators, you might have found some like pyarmor, or pyminifier. But then there’s one that does actually obfuscate the code which can’t be reversed to the original source. You can find it here, but there’s just one small caveat. Purchasing it costs USD $1998.

Now that’s not to say you can’t use it for free, after all if you want to use it online it’s free to use. But if you wish to use an offline cli version, well then you need to pay.

This is where Carbon comes in. I decided to make my own version of the oxyry obfuscator which does the same job. It renames classes, functions, parameters and variables. It removes docstrings and comments and doesn’t stick on a line number at the end of each line. But best of all, it isn’t locked to Python 3.3-3.7.

✨ Features

✔️ Remove docstrings and comments ✔️ Rename classes, functions, parameters and variables

🚫 Known Bugs

Functions, Classes, Variables and Parameters are replaced across the file. This can cause problems as such:

num = 1
for i in range(5):
  print(f"num: {num}")
  num += 1


IlIlllllIlI = 1
for lIllllIIlIIIIIIlll in range(5):
    print(f"IlIlllllIlI: {IlIlllllIlI}")
    IlIlllllIlI += 1

The only way to avoid this is to avoid publicly using classes, functions, parameters and variables.

lllIlIIlIIllIllIll = 1
for lIlIIllIlIlIIIIl in range(5):
    print(f"num: {lllIlIIlIIllIllIll}")
    lllIlIIlIIllIllIll += 1

A fix is being looked into currently.

🚀 Technologies

The following tools were used in this project:

✅ Requirements

Before starting, you need to have Python installed.

🏁 Starting

# Clone this project
$ git clone

# Access
$ cd Carbon

# Run the project
$ python

📝 License

This project is under license from MIT. For more details, see the LICENSE file.

Made with ❤️ by 0sir1s


Back to top


View Github