How can I protect a public script from being changed?

5 vues (au cours des 30 derniers jours)
David Koenig
David Koenig le 7 Août 2018
Modifié(e) : David Koenig le 7 Août 2018
I write scripts that I would like other Matlab users to run but I do not want them to be able to modify it. Is there a way to protect a script that I make public?
  1 commentaire
Adam
Adam le 7 Août 2018
doc pcode
can probably help with this if you turn it into a function.

Connectez-vous pour commenter.

Réponse acceptée

OCDER
OCDER le 7 Août 2018
Perhaps convert your code to p-code to discourage modifying your codes. It is NOT a full protection for modifying your codes though.
Complete protection against modification is tricky. This would require compiling your code via something like mcc, and if you really want, adding some security checks against modification / reverse engineering (that's above my skill set). But then, its not really usable via Matlab sessions.
I think p-code is what you're aiming for.

Plus de réponses (1)

David Koenig
David Koenig le 7 Août 2018
Modifié(e) : David Koenig le 7 Août 2018
Thanks to Adam and OCDER.

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Produits


Version

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by