Page 1 of 1

Save newLisp program as bytecode

Posted: Thu Dec 18, 2008 1:40 pm
by ale870
Hello,

I know that newLisp compile (byte-code ) the source code.
Is there any way to save this bytecode, in order to load it later, without recompiling it?

More: I need to "hide" the program (not newLisp app, but my app made in newLisp self), since I need to distribute it. Can you suggest me a way to do this?
(I wish to avoid reverse engineering my newLisp code).

Thank you.

Posted: Wed Dec 24, 2008 10:04 am
by cormullion
No answers here - I can't see any mention of byte-code anywhere....

Posted: Wed Dec 24, 2008 1:48 pm
by ale870
Yes I see... but I think that a way to save precompiled code and another way to avoid reverse engineering could be useful too.

Posted: Wed Dec 24, 2008 2:00 pm
by Lutz
This also does a simple encryption of the source when linking:

http://www.newlisp.org/downloads/newlis ... ml#linking

Posted: Wed Dec 24, 2008 2:20 pm
by ale870
Thank you Lutz, this could be a good solution.
Is there any way to make such link and execute another script during execution?
For example I could encrypt source code with a strong password, then I link it to the executable, but I need to decrypt it before running.

Posted: Wed Dec 24, 2008 5:25 pm
by Lutz
Look into the file link.lsp. Its not a strong scheme, just enough to deter the casual non-programmer user. Anybody knowing newLISP and looking into link.lsp will be able to unlock the linked source.

Posted: Thu Dec 25, 2008 12:32 am
by ale870
Thank you!
I will modify it to accept a user input as a password to decrypt newlisp file ;-)