Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Mesple on March 26, 2016, 12:45:08 am

Title: Hide scripts source code in MDG Technology?
Post by: Mesple on March 26, 2016, 12:45:08 am
Hi all,

My MDG Techno includes scripts and I'd like to hide the source code of these scripts?
Do you have any idea?

Thanks,
Olivier
Title: Re: Hide scripts source code in MDG Technology?
Post by: qwerty on March 26, 2016, 02:57:01 am
Code them in a language which compiles. That's the only way you can obfuscate it.

q.
Title: Re: Hide scripts source code in MDG Technology?
Post by: Geert Bellekens on March 26, 2016, 03:31:55 am
Why would you want to hide the code?
Isn't it all about 'open source' these days?

Geert
Title: Re: Hide scripts source code in MDG Technology?
Post by: Eve on March 29, 2016, 09:21:13 am
No, the scripts provided by an MDG technology can't be hidden. Even if there was, it wouldn't be secure enough, users regularly demonstrate a willingness to decode binary data from withing MDG technology files. The best possible would be for us provide a public key that authors could encrypt their scripts and hard code the private key into EA itself. If that was done, it would estimate no more than 15 minutes to get the string when running the script.

Expanding on qwerty's response, my recommendation is to write an add-in that provides the MDG technology and any extra functions required.