Obfuscator
Obfuscates python code, compressing it and encoding it.
Install / Use
/learn @fionafibration/ObfuscatorREADME
Python Obfuscator
Use
Reads a python program from stdin, then compiles and serializes it using the marshal module. Then, encodes that serialization as a series of bitshifts and integers from 1-9, then puts these into a file with a Y combinator lambda to read the integers back as bytes, and obfuscated imports and calls to marshal.loads() and exec().
Error Avoidance
Don't use any variable names that are only made up of underscores. That's about it.
Example
Included is an example implementation of the SHA3 and Keccak hash functions, and the fully obfuscated version. Size of the file is increased monumentally, by nearly 60 times, and PyCharm crashes upon attempting to reformat the code. However, it works just as the unobfuscated version does, including identical variable names, classes, and all, even though there is a noticeable delay upon importing the file.
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
