Can I access the code for my packaged app?

조회 수: 2 (최근 30일)
홍제 정
홍제 정 2023년 11월 14일
편집: Angelo Yeo 2023년 11월 14일
I've created and packaged an app using the App Designer, and I want to share it.
However, I only want others to use my app and not have access to the app code.
Is it possible to package an app without making the code inaccessible?
Is the code inaccessible when using app packing function in the MATLAB?
  댓글 수: 3
홍제 정
홍제 정 2023년 11월 14일
Thanks a lot. I have packeged with application complier, then,
I was just wondering if the code is automatically encrypted when using the application compiler.
Angelo Yeo
Angelo Yeo 2023년 11월 14일
편집: Angelo Yeo 2023년 11월 14일
Yes, Application Compiler encrypts m-files automatically. Note that the compilation uses AES (Advanced Encryption Standard), which is different from p-code. P-codes obfuscate codes.
Information on encryption is not fully documented, but you can find hints in the doc below.
https://www.mathworks.com/help/compiler/mcc.html

댓글을 달려면 로그인하십시오.

채택된 답변

Chunru
Chunru 2023년 11월 14일
Perhaps the most straightforward way is to convert your m-code to pcode (doc pcode for more details). Compiling is another option, but it may be more involved (need compiler).
  댓글 수: 1
Angelo Yeo
Angelo Yeo 2023년 11월 14일
편집: Angelo Yeo 2023년 11월 14일
Ah, I agree. p-code can be a convenient way to go. For OP's information, one can export apps into "m" file.
This can be obscured with pcode.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by