Should I encrypt my files before compilation?

If I create a Standalone application by means of MATLAB Compiler are my source codes (m-files) safety after compilation to .exe file or someone anyhow can get an access to m-files of the compilated product? Or should I make p-files from m-files before compilation to Standalone App?

 採用された回答

Robert Cumming
Robert Cumming 2014 年 7 月 7 日

0 投票

No there is no need to encrypt your mfiles before compiling to an exe.

3 件のコメント

Goryn
Goryn 2014 年 7 月 7 日
Does it mean that nobody can take my m-files (from memory or somehow else) after running a compiled .exe? (just for being absolutely sure)
Robert Cumming
Robert Cumming 2014 年 7 月 7 日
Its impossible to 100% stop someone with enough time, knowledge and effort (i.e. money) to reverse engineer an exe - but whether its pcode or mcode will make no difference in that situation.
For 99.9999% of the time simply compiling to exe will be enough. (I have no reference for that percentage - its just indicative....)
Titus Edelhofer
Titus Edelhofer 2014 年 7 月 7 日
Hi Goryn, Robert is right: m or p doesn't make a difference here. The encryption of the files is fairly strong. You can increase the level of security (not to 100%!) by using some external encrypting/security program.

サインインしてコメントする。

その他の回答 (1 件)

David Leffingwell
David Leffingwell 2023 年 6 月 12 日

0 投票

Using the MATLAB Compiler will encrypt your M files for you. You can also pcode them as well. If you have MATLAB R2022b or later, you can use the -j switch of the MATLAB Compiler to automatically P-code all your M files before they are encrypted and packaged.

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2014 年 7 月 7 日

回答済み:

2023 年 6 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by