How to secure my code?

1 view (last 30 days)
Wael Wanis
Wael Wanis on 30 Oct 2019
Commented: Wael Wanis on 2 Nov 2019
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 Comments
Walter Roberson
Walter Roberson on 30 Oct 2019
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 on 2 Nov 2019
thanks both of you for your answers.

Sign in to comment.

Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!