Is a function from Matlab, compiled as a Python package from Matlab Library Compiler, encrypted?

I made some Matlab scripts for my work and compiled then using Matlab Aplication Compiler (generates .exe) to use in Python scripts using os.system or subprocess.call. But calling these functions are really slow. So i think about using Python package from Matlab Library Compiler with as i saw creates a .ctf file for the functions, but i want to make my code closed for the client and i know that Python is not made for compile or obfuscate code.
My question is if i use this Python Package from Matlab Library Compiler will my code be encrypted for the client?

 Accepted Answer

The MATLAB level will be encrypted. The other languages will not be. Any source code submitted to Python or Java to be executed can be debugged by tools provided by that language.

6 Comments

Which side is the client here?
The code that happens at the MATLAB level is encrypted. Any external calls it makes are not encrypted.
ah ok. the interface code i give to the clients, the people that will use it, is in python. I told my boss that python is open for them too see and he said "it is ok that the interface code is open, but the intelectual property functions called by this interface, with is coded in matlab, must be protected and closed". The clients is the people that will use the code, both the interface the intelectual property.
I suspect you need to use MATLAB Compiler SDK for this task, rather than MATLAB Compiler.
That is the question. If i use it, will my code be encrypted?
MATLAB Compiler and MATLAB Compiler SDK use the same basic technology: the .m and .p that you provide are encoded and encrypted into data structures that are interpreted at runtime.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!