MATLAB Answers


Hiding encryption key via p-file?

Asked by Qinwan Rabbani on 1 Dec 2016
Latest activity Commented on by Anudeep Katragadda on 19 Dec 2016
How safe would it be safe to store an encryption key in a p-file within a switch-case statement? I was reading that it is possible to use the debugger to extract variables from a p-file.
However, I read here that switch is a function that cannot be be shadowed: Can someone clarify this for me?

  1 Comment

This is from MATLAB documentation that can be found here:
When MATLAB P-codes a file, the file is obfuscated not encrypted. While the content in a .p file is difficult to understand, it should not be considered secure. It is not recommended that you P-code files to protect your intellectual property.

Sign in to comment.

0 Answers