Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How save is pcode?

Subject: How save is pcode?

From: Stefan

Date: 20 Mar, 2008 15:17:01

Message: 1 of 6

I just wonder how save pcode is against re-engineering by
back translating to m-code. Are there any nasty cracks
somewhere out in the www.

Subject: How save is pcode?

From: Vihang Patil

Date: 21 Mar, 2008 06:55:03

Message: 2 of 6

"Stefan " <stefan.vonbergen.nospam@aerodynamics.ch> wrote
in message <frtv5d$60d$1@fred.mathworks.com>...
> I just wonder how save pcode is against re-engineering by
> back translating to m-code. Are there any nasty cracks
> somewhere out in the www.
>
>
Do you mean to say "How SAFE is P-Code?" or "How to save a
P-Code?"
If I am not mistaken, probably you are interested in the
former question.
I am not sure, if there exists any code out there to
convert P code to M code. Pcode is encrypted using AES
encryption, using a key only known to Mathworks, so only
Mathworks could convert it back to M-code.
But my friend, there are hackers and crackers out there
who have hacked and cracked the most intelligent of
systems. So, it could be quite possible for some
intelligent life form to crack the AES encryption.
Vihang

Subject: How save is pcode?

From: Steven Lord

Date: 21 Mar, 2008 13:20:25

Message: 3 of 6


"Vihang Patil" <vihang_patil@yahoo.com> wrote in message
news:frvm47$b8b$1@fred.mathworks.com...
> "Stefan " <stefan.vonbergen.nospam@aerodynamics.ch> wrote
> in message <frtv5d$60d$1@fred.mathworks.com>...
>> I just wonder how save pcode is against re-engineering by
>> back translating to m-code. Are there any nasty cracks
>> somewhere out in the www.
>>
>>
> Do you mean to say "How SAFE is P-Code?" or "How to save a
> P-Code?"
> If I am not mistaken, probably you are interested in the
> former question.
> I am not sure, if there exists any code out there to
> convert P code to M code. Pcode is encrypted using AES
> encryption,

You're thinking of the CTF file generated by MATLAB Compiler, not PCODE.

http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/f10-998688.html

*snip*

--
Steve Lord
slord@mathworks.com

Subject: How save is pcode?

From: Doug Schwarz

Date: 21 Mar, 2008 13:35:17

Message: 4 of 6

In article <frvm47$b8b$1@fred.mathworks.com>,
 "Vihang Patil" <vihang_patil@yahoo.com> wrote:

> "Stefan " <stefan.vonbergen.nospam@aerodynamics.ch> wrote
> in message <frtv5d$60d$1@fred.mathworks.com>...
> > I just wonder how save pcode is against re-engineering by
> > back translating to m-code. Are there any nasty cracks
> > somewhere out in the www.
> >
> >
> Do you mean to say "How SAFE is P-Code?" or "How to save a
> P-Code?"
> If I am not mistaken, probably you are interested in the
> former question.
> I am not sure, if there exists any code out there to
> convert P code to M code. Pcode is encrypted using AES
> encryption, using a key only known to Mathworks, so only
> Mathworks could convert it back to M-code.
> But my friend, there are hackers and crackers out there
> who have hacked and cracked the most intelligent of
> systems. So, it could be quite possible for some
> intelligent life form to crack the AES encryption.
> Vihang

In addition to what Steve said I would like to point out that The
MathWorks has never said what form of encryption they use for p-code. I
have gotten the impression over the years that it isn't very strong (or
at least wasn't at first), perhaps it is stronger today. However, as
far as I know, what is being encrypted is not the m-file, but the
intermediate byte code which has never been specified. So I think it
would be rather difficult to break the p-code encryption given that we
don't even know what language is being encrypted. I wouldn't worry
about it.

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

Subject: How save is pcode?

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 21 Mar, 2008 13:38:35

Message: 5 of 6

In article <see-67C48F.09351921032008@71-129-133-66.dollamir.com>,
Doug Schwarz <see@sig.for.address.edu> wrote:

>In addition to what Steve said I would like to point out that The
>MathWorks has never said what form of encryption they use for p-code.

Mathworks documents that AES is used to encrypt Component Technology
Files (CTF). Which, as Steve Lord points out, is not the same
as p-code (created by the 'pcode' command) which is merely pre-parsed
code.
--
  "Let me live in my house by the side of the road --
   It's here the race of men go by.
   They are good, they are bad, they are weak, they are strong
   Wise, foolish -- so am I;" -- Sam Walter Foss

Subject: How safe is pcode?

From: Stefan

Date: 25 Mar, 2008 11:05:04

Message: 6 of 6

Thanks to all for the feedback. Yes, I was interessted in
safety (not how to save...).

As far as I understand the feedbacks, there is no really
obvious way to translate p back to m. I guess for my
application this is safe enough.

Thanks!

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us