# [NEW VERSION HERE](https://github.com/gumbobr0t/rose-obf)!
RoseGuardian Logo

:rose: A Python Code Obfuscator :shield:

RoseGuardian

Top Language Stars License

About   |   Features   |   Usage   |   Todo   |   Examples   |   License   |   Author


## About :rose: RoseGuardian is a powerful Python code obfuscator designed to safeguard your intellectual property. It employs advanced techniques to obscure your source code, making it significantly more challenging for potential reverse engineers to understand or modify.
## Features :sparkles: - :closed_lock_with_key: Strong Class and Function Renaming - :inbox_tray: Code Compression with zlib - :package: Create Marshalized Objects - :scroll: Remove Comments
## Usage :rocket: For optimal obfuscation, it is recommended to set the junk layers to 10 and utilize obfuscation method 1. ```bash # Clone the project $ git clone https://github.com/DamagingRose/RoseGuardian.git # Navigate to project directory $ cd RoseGuardian # Run the project $ python RoseGuardian.py ```
## Todo :pencil: - [ ] Rename Variables and Parameters - [ ] Remove Docstrings - [ ] Add library support
## Examples :clipboard: **Command**: ```bash # Obfuscates test.py with 2 junk layers and obfuscation method 1 $ python RoseGuardian.py test.py 2 1 ``` **Before** (test.py): ```python import random, string import base64 def hello(): global var var = 'hii' # hi print(var) print(random.choices(string.ascii_letters, k=5)) hello() print(base64.b64encode(var.encode('utf-8'))) class banana(): # banana ss = b'\nPEWPEW' print(ss) def counter(num): for i in range(num): print('dogs are cool!') counter(5) # lalala ``` **After** (obfuscated_test.py): ```python __obfuscator__ = 'RoseGuardian' __author__ = 'gumbobr0t' __github__ = 'https://github.com/DamagingRose/RoseGuardian' __license__ = 'EPL-2.0' def complicated_function(): result = 0 for i in range(1, 11): result += i**3 - i**2 + i return result class ComplicatedAlgorithm: def __init__(self): self._ = None self.__ = None def execute(self): pass def execute_complicated_algorithm(): _ = ComplicatedAlgorithm() _._ = lambda _, __: _.___(__) + _.___(_.___(_.__(_.___(_.__)))) def analyze_data(): import random data = [random.randint(1, 100) for _ in range(10)] result = sum(data) / len(data) import marshal, base64, zlib; exec(marshal.loads(zlib.decompress(base64.b64decode(b'eJxNkNFLwzAQxudr/orzKQ3MPm1DhD6piAxkIFgRQdI06W5rcyOXDfzvTdeADYHku3C/77vw4WaxwOFEIULQvqVhCRwD+k7kaqPZblZCiNY6IPdlXt/x4C6FehCQVtdTo3u46HCV6YQK5B5RXvUpoWKRqioRJjHZlGZPaCwXk1up2SD+9DZGG3gJx2qtlJjb5e4pTtlsVtYbau3ILvNVnqO7u5dKjWam18zwgbXZ6if/8jjFTaUKGvntd8912vOQzCpPuXVvu/r3k45D4c9DHtRRAAT04zd1dvbwT5AtdQw6WDBE/a0ceTPWWok/MtZvYw==')))) def gravimetric_flux(): pass class warp_inverter: def __init__(self): self._ = None self.__ = None def subspace_transducer(self, _): return self.subspace_transducer(_) def chronal_conduit(): _ = warp_inverter() _._ = lambda _, __: _.___(__) + _.___(_.___(_.__(_.___(_.__)))) def singularity_stabilizer(): _ = gravimetric_flux() _._ = lambda _, __: _.___(__) + _.___(_.___(_.__(_.___(_.__)))) def entropic_reactor(): pass ```
## License :page_facing_up: This project is licensed under the EPL-2.0 license.
## Author :mortar_board: Developed with :heart: by [gumbobrot](https://github.com/gumbobr0t) Back to top