How can I prevent my executable from extracting its code with .CTF??
Show older comments
I try to make an standalone executable for Linux with deploytool (matlab 2010b, MCR_7142). I also need to encrypt it by AxProtector of WibuSystems. Once is encrypted, after a few attempts to launch it(in which I obtained and error of CTF initialization), I found out that it worked when I deselected the "Embed CTF file in execuable" option in settings... The problem is that every time I launch the executable, a 'file_name_mcr' is created containing all the source code. This has no sense as I encrypt the executable for a reason. Is there any way to compile my executable without creating that folder? Thanks!
2 Comments
OCDER
on 10 Oct 2018
Seems like an issue with DeployTool
Have you tried using mcc to compile your codes instead?
Isabel de la Peña Mesas
on 11 Oct 2018
Edited: Isabel de la Peña Mesas
on 15 Oct 2018
Answers (1)
Ran Chen
on 12 Oct 2018
0 votes
Hello, It might because of a corrupted 'MCR_CACHE_ROOT' that causing it fails to extract.
You may set the environment variable 'MCR_CACHE_ROOT' to another location or do a clean up at the default location.
In addition, you may not need to encrypt a standalone application, all MATLAB files are encrypted in the CTF archive using the Advanced Encryption Standard (AES) cryptosystem.
When you choose not to embed the CTF (eg. using '-C' flag in 'mcc'), it would result in CTF to be located at the same level as the application. Then, when running the application, CTF will be extracted at the current folder as you saw. This has no effect of how the encryption works for compiled application since the encryption is on the MATLAB programs but not the extraction mechanism.
1 Comment
Isabel de la Peña Mesas
on 9 Jul 2020
Categories
Find more on Application Deployment in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!