Save newLisp program as bytecode

Notices and updates
Locked
ale870
Posts: 297
Joined: Mon Nov 26, 2007 8:01 pm
Location: Italy

Save newLisp program as bytecode

Post 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.
--

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

No answers here - I can't see any mention of byte-code anywhere....

ale870
Posts: 297
Joined: Mon Nov 26, 2007 8:01 pm
Location: Italy

Post 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.
--

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

This also does a simple encryption of the source when linking:

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

ale870
Posts: 297
Joined: Mon Nov 26, 2007 8:01 pm
Location: Italy

Post 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.
--

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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.

ale870
Posts: 297
Joined: Mon Nov 26, 2007 8:01 pm
Location: Italy

Post by ale870 »

Thank you!
I will modify it to accept a user input as a password to decrypt newlisp file ;-)
--

Locked