Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
do you mean Obfuscation?
as matlab is an interpreted language it's not posible to Obfuscate like in compiled or intermidate languages C++\Java\.Net
but in newer Matlab versions there is a nice function called PCODE
or you can compile you m-files with mcc and Obfuscate the resulting application with an Obfuscator (asprotect, or a tweaked version of upx)
mcc is Matlabs m to C Converter/Compiler
you need Microsoft Visual Studio installed so you could compile the "m" to "C" files to exe
but for these exe (or dll) files to run you'll need the Matlab Run-time installed (about 200M) and they are slow!
And for the security of p files ? try it out, the output is unreadable by humans, the source for pcode is not open so how it does what it does I don't know. a Mathworks employ could probably break p files but for the rest of us, I don't think so.
Added after 5 minutes:
How to convert m files to p files is easy as pie
Write your m files, test them, and then just pcode them:
pcode *.m (backup your m-files and distribute only the p files they run just like any matlab program)
Added after 2 minutes:
And as an added bonus p-files run much faster then m-files They are acutely preparsed so at run-time there is no need for extra parsing
"And for the security of p files ? try it out, the output is unreadable by humans, the source for pcode is not open so how it does what it does I don't know. a Mathworks employ could probably break p files but for the rest of us, I don't think so. "
yeah, but there are guys who does reverse engineering on .exe, and dlls what I mean by that question is how does the simple pcode protect the file compared to e.g. hardware cipher keys
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.