フィルターのクリア

HOW TO SECURE MATLAB GUI

5 ビュー (過去 30 日間)
Bradley Jason Teguh
Bradley Jason Teguh 2021 年 7 月 17 日
コメント済み: David Leffingwell 2023 年 6 月 12 日
Is there a way to secure my matlab gui in .exe ? So it wont be able to spread widely by other people ? Cause im trying to prevent for people being able to use my code as a cheat for exam.

回答 (2 件)

Image Analyst
Image Analyst 2021 年 7 月 17 日
Description
pcode(item) obfuscates the code in a .m file or folder on the search path and produces P-files with the extension .p. If item is a .m file, then the resulting file is item.p. If item is a folder, then all script or function files in that folder are obfuscated in the current folder. A P-file takes precedence over the corresponding .m file for execution, even after modifications to the .m file.
Note
The pcode function obfuscates your program files and does not encrypt them, thus P-files should not be considered secure. P-coding files to protect your intellectual property is not recommended.
  1 件のコメント
David Leffingwell
David Leffingwell 2023 年 6 月 12 日
See also "pcode -R2022a"

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


Walter Roberson
Walter Roberson 2021 年 7 月 17 日
There are some effective strategies for preventing people from copying your code for use in an exam:
  • make your program so unpleasant to use that people would rather write their own code
  • make your program give obviously wrong answers
  • don't give anyone else access to the program
  • Encrypt part of the program and prompt the user for a password that is used as a key to decrypt some of the m files, and do not tell anyone else what the key is. For better effect, if the wrong key is entered, instead of just failing, give wrong answers

カテゴリ

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

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by