App Designer package and encrypt code

12 ビュー (過去 30 日間)
Leo Zhai
Leo Zhai 2021 年 8 月 9 日
編集済み: Yoni 2023 年 6 月 26 日
Hi
I develped an AppDesigner, and Shared(packaged) it as .mlappinstall
  • I already 'pcode' the used functions as .p before packaging.
  • While when I unzip the .mlappinstall, I could see the .mlapp, which means the user could also see the .mlapp part code.
How could I encrypt the .mlapp and package.
BTW: I knew I could export the .mlapp to .m then 'pcode' to .p, while I could not use AppDesigner tool to share(package) a .m

採用された回答

Shivam Ahuja
Shivam Ahuja 2021 年 8 月 17 日
I understand that you want to encrypt the .mlapp file and package
The following 3 ways will help you to achieve this:-
1) Use MATLAB Compiler to compile everything. MATLAB Compiler encrypts using AES. You can refer to below two links for more understanding on how to use MATLAB Compiler to encrypt.
2) Use your own encryption scheme. It will be necessary to decrypt the code before it can be executed. You can refer to below link.
3)Use pcode which obfuscates code (makes it more difficult to access and understand) but does not actually encrypt it. You can refer to documentation of pcode.
  2 件のコメント
Yoni
Yoni 2023 年 6 月 23 日
編集済み: Yoni 2023 年 6 月 23 日
How can you obfuscates mlapp source code and still be able to package it as a MATLAB app that can be installed in MATLAB?
Yoni
Yoni 2023 年 6 月 26 日
編集済み: Yoni 2023 年 6 月 26 日
I found a solution. It turns out you can run the m-files that you get from exporting MLAPP files. This means you don't need to carry over the MLAPP files to your package. But, before you package, convert the m-files to p-files. Now your packaged app is protected.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by