Is it posiible to hide a source code?

4 views (last 30 days)
Hello,
what is the best way to hide source code of Matlab. Indeed, I want to give a code to users to execute it without being able to access it.
Thnak you !

Accepted Answer

Bruno Luong
Bruno Luong on 18 Sep 2020
pcode myfun
  6 Comments
Rik
Rik on 18 Sep 2020
If you are willing to rely on the system time you can use now to retrieve the current date and compare it to an expiration date. If you don't trust the user, then you should host your own server that returns a time. Don't use the publicly available options, as you don't control whether they allow API access and might go down without warning.

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!