Decompilation of an .exe file(built by Matlab)

Hello dear experts of Matlab, i would like to ask that is it possible to decompile a previously made Matlab project(compiled as .exe) ? I compiled my .m and .fig files into a just one .exe file since i did not want the others see my codes inside, but i am not sure if there is a program which decompiles the included files in an exe file. If so, is there another way to hide the codes of your .m files? Can you please give information about this?

답변 (2개)

Friedrich
Friedrich 2012년 3월 13일

3 개 추천

Hi,
MATLAB Compiler decrypts the m files binary style. There is no program available which decodes your m files so that you can read it again.
Theoretically it should be possible to encrypt it, but this is tough and pretty hard.

댓글 수: 3

Jan
Jan 2012년 3월 13일
"...possible to *de*crypt it, ...". The perfect reconstruction of the original sources is impossible. The construction of code with the same functionality as the original source is possible in theory, but the decryption might take some years of processing time. +1
kaan yilmaz
kaan yilmaz 2012년 3월 13일
Friedrich, the thing you mean is that when i make an exe file, someone cannot read the .m file codes, right? If so, i will be really happy...
thnx..
Friedrich
Friedrich 2012년 3월 14일
Hi Kaan,
yes, noone can read the files anymore after compiling. So its a safe way to protect your code.

댓글을 달려면 로그인하십시오.

Sean de Wolski
Sean de Wolski 2012년 3월 13일

0 개 추천

You can also hide your code as *.p files. It sounds like this approach might better suit you.
doc pcode

댓글 수: 3

kaan yilmaz
kaan yilmaz 2012년 3월 13일
hi, how can i do this? i couldnt get it
if you enter:
doc pcode
at the MATLAB command line, it will give you instructions on how to convert your mcode to pcode. This will mean you can give your friends the *.p file, they can run it just like any other file, but they can't see the code under the hood.
Jan
Jan 2017년 10월 24일
P-coding has a limited protection level only. You can e.g. still use the debugger the examine the contents of the functions.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

질문:

2012년 3월 13일

댓글:

Jan
2017년 10월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by