Page 1 of 1

protection of add-on

Posted: Wed Sep 28, 2011 4:54 pm
by kurtforrester
Is it possible to protect a ecma script from viewing/copying if I were to develop and add-on for QCAD 3?

Posted: Wed Sep 28, 2011 5:45 pm
by andrew
The situation is the same as with JavaScript on the Internet. If QCAD can access your scripts, so can any QCAD user.

Note that JavaScript and ECMAScript are the same.

You could use a JavaScript scrambler/compressor to make your code harder to read (for example YUI Compressor). The code is of course still there and it can still be copied like any file. There are also decompressiors / descramblers available as one might expect.