How to secure my code?

1 次查看(过去 30 天)
Wael Wanis
Wael Wanis 2019-10-30
评论: Wael Wanis 2019-11-2
Hello everyone,
I am designing a GUI using MATLAB to interface with my FreeFem++ code.
Until now the GUI works properly only if the FreeFem++ file of the code exists in the same folder with the GUI file.
However, my problem is that I want to share my GUI with many users without letting them read the FreeFem++ code, I want them only to access it through the GUI.
Does anyone know how to handle his situation?
Note:
  • I tried to save the code as (.p) file but FreeFem++ software cannot read (.p) files.
  • I tried to use the following function to make the file "hidden and read only" but still the user can show hidden files then open and read the code.
fileattrib('D:/work/results','+h -w','','s')
so both trials are failures in my case.
Thank you
WIndows 10, MATLAB R2019b
  3 个评论
Walter Roberson
Walter Roberson 2019-10-30
I am not clear as to whether you have written some FreeFem++ language code already that you are trying to hide? If so then how to hide it would be a matter for FreeFem++ not for MATLAB.
If you are generating the FreeFem++ code inside your GUI and writing it to a file for FreeFem++ to operate on, then that would be a MATLAB matter -- but for that case it would not matter that FreeFem++ cannot read .p files, as it would be code in FreeFem++ language that you would be transferring. Using .p with the MATLAB code that generated the FF code would help, but you might then need to take extra steps to reduce the risk of the FF code temporary file being intercepted.
Wael Wanis
Wael Wanis 2019-11-2
thanks both of you for your answers.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Classical Control Design 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by