PDA

View Full Version : Lock script to dongle id



ernpchan
05-03-2014, 12:36 AM
Is it possible to lock a script to a specific dongle id? For example, you want to monetize your compiled scripts.

RebelHill
05-03-2014, 04:13 AM
ofc... use the licence info ( licenseId(); in LS) to return the lock id number, hash it, transform it, etc.

ernpchan
05-03-2014, 08:11 AM
That seems so obvious I feel dum for not seeing that. Thanks RH.

BigHache
05-08-2014, 07:59 AM
Maybe this is a stupid question, but can't compiled scripts be uncompiled?

ernpchan
05-08-2014, 08:13 AM
Don't believe so. I know lscripts can if you've locked it with a password. Not sure if python scripts have that capability.

Kinda defeats the purpose of compiling if anyone could open it back up.

BigHache
05-08-2014, 08:22 PM
Yeah, I know. I've not personally tried to decompile a .pyc file, but I did research this a while back and it's easy to get search results for how to decompile a script.

As for monetizing scripts, honest people will be honest, dishonest people will be dishonest. Compiling a script, to some extent, will just create a challenge for a dishonest person, unfortunately.

ernpchan
05-08-2014, 10:06 PM
I wonder if the LW3DG has a specific way of compiling then because I know they have compiled py files for proprietary reasons.

BigHache
05-12-2014, 09:37 AM
From what I've read it's the nature of how PYC files are compiled. I don't think LW3D has done anything special on that front, though I could be mistaken.

walfridson
05-13-2014, 02:21 AM
http://stackoverflow.com/questions/261638/how-do-i-protect-python-code

ernpchan
05-13-2014, 07:57 AM
It's too bad lscript is reaching end of life. The ability to compile and put usage timers is nice.