![Simulink Simulink](/uploads/1/2/6/0/126044561/251761953.jpg)
Active2 years, 6 months ago
Incorrect decrypted message. I've tried using very low numbers for p and q in case it was exceeding the bit capacity and it still fails. Hi may I know how to convert.p file to.m file extension? I'm a student and I beg for your help. I really need your help. Yes, but in some cases, like a freelance job, or contrat job, developer need to decrypt the code. Walter Roberson. Walter Roberson (view profile) 30 questions asked; 41,023 answers. MATLAB; Simulink.
Is there a way to open a pcode file (.p) in MATLAB?
Herr von WurstYou could start a C-mex thread, which pokes into the memory of a Matlab variable with a specified timing. Then the debugger is not able to determine the key reliably. But I remember, that there has not been any 100% secure method in the history of modern computing. If you invent one, M- and P-files will not be your profession anymore. What is the difference between MATLAB code. Learn more about p-code, m-code, pcode, mcode, p, m, code, hide, encrypt, performance, rapidity, m-file MATLAB Toggle Main Navigation.
1,6172 gold badges20 silver badges42 bronze badges
ElmoyaElmoya
P File Extension
1 Answer
If by 'open' you mean edit - then certainly not. 'p' in pcode is for 'protected' - its main design goal is deploying a functional component while protecting its source.
If by 'open' you mean run - then certainly yes. Quoting the manual:
You invoke the resulting P-code file in the same way you invoke the MATLAB .m source file from which it was derived. For example, to invoke file myfun.p, type
[out, out2, ...] = myfun(in1, in2, ...);
Ofek ShilonOfek Shilon7,5471 gold badge41 silver badges74 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Not the answer you're looking for? Browse other questions tagged matlab or ask your own question.
@Jan: Jan, I think you missed my point. I already said that the encryption was put in place on purpose to protect intellectual property, which is what I like. I meant to say that hacking P-code is possible but probably very difficult. I probably had a smirk on my face when I say 'hey, if you find a way, please let me know!'. I didn't know hacking P-code is not a real challenge and I still believe it is going to be very hard. Are you afraid that math98 will take my word for it and go cracking the encryption? He said he 'heard from an old MATLAB user that there are some ways to decrypt a pcode'. Is that 'old MATLAB user' referring to you? Walter didn't want to take that credit.