colcon / colcon-bundle

A colcon extension to create portable application bundles
Apache License 2.0
38 stars 24 forks source link

Is there colcon bundle provides any way ROS bundle output having non readable binary or something encrypted to prevent steal python source code #224

Closed Rohita83 closed 3 years ago

Rohita83 commented 3 years ago

Hi Team,

I am having a requirement that ROS bundle output (e.g. output.tar) must have non-readable binary or something encrypted to prevent steal python (.py files) source code from the target device.

For example, when you compile C/C++ code with GCC/G++ the compiled output is not readable source code.

is there any way in colcon to prevent steal python (.py files) source code??

please suggest to us any input for the same.

emersonknapp commented 3 years ago

I'm sorry - this isn't an appropriate place for this conversation. colcon-bundle simply bundles a workspace and its dependencies into a self-contained tarball, it does not produce or manage build artifacts.

That being said - you may want to google for "python obfuscation" or "python compilation". There are some tools that might help you with this. However, if you truly want to only distribute object files, use a compiled language, not an interpreted one. This problem exists for Javascript as well, many get around it with "minifying", "obfuscating", and "uglifying" - and there are some tools for these for Python as well.