Lock a Code

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
itay1023
Posts: 68
Joined: Fri Sep 28, 2012 1:44 pm

Lock a Code

Post by itay1023 » Wed Nov 20, 2013 5:19 pm

Hi,
How can i lock a LC code?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Lock a Code

Post by Klaus » Wed Nov 20, 2013 5:25 pm

Set a password for your stack.

itay1023
Posts: 68
Joined: Fri Sep 28, 2012 1:44 pm

Re: Lock a Code

Post by itay1023 » Wed Nov 20, 2013 5:43 pm

How to do it?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Lock a Code

Post by Klaus » Wed Nov 20, 2013 5:45 pm

Check "password" (sic! 8) ) in the dictionary.

itay1023
Posts: 68
Joined: Fri Sep 28, 2012 1:44 pm

Re: Lock a Code

Post by itay1023 » Wed Nov 20, 2013 5:48 pm

I want to lock the stack code, not the hole stack...

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Lock a Code

Post by Klaus » Wed Nov 20, 2013 6:07 pm

Sorry, you can only lock the complete stack or nothing.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Lock a Code

Post by dunbarx » Wed Nov 20, 2013 6:30 pm

What exactly are you trying to protect? Klaus assumes the stack itself, which is the normal concern.

Are you trying to lock out a particular script, (or perhaps a card and its objects) so that they cannot be tampered with? There are ways to do that if this is what you really wanted.

Craig Newman

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Lock a Code

Post by Klaus » Wed Nov 20, 2013 7:30 pm

Hi Craig,
dunbarx wrote:...
There are ways to do that if this is what you really wanted
tell me more about this, please :D


Best

Klaus

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Lock a Code

Post by FourthWorld » Wed Nov 20, 2013 7:54 pm

It may be useful to note that protecting a stack's source code can only be done with the Commercial edition of LiveCode. The Community edition is licensed under the GPL, which requires that making the source code available whenever the app itself is distributed to others.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Lock a Code

Post by dunbarx » Wed Nov 20, 2013 8:41 pm

Klaus.

I am not sure how high the OP's expectations were.

I was thinking of shenanigans, like using a backscript or a plug-in, as opposed to a stack script, that might not be visible to a less that highly motivated LC hacker, or perhaps a stack in use that would have the same moderate camouflage. Or was he aware that making a standalone pretty much locks out any tampering.

or put this in a custom property of a button:

on mouseUp
get the xxx of me
do it
end mouseUp

and the custom property itself:

answer "need a random number?" with "OK" or "Cancel"
if it = "OK" then answer random(999)

You know, shenanigans.

On the object side, if there is one, maybe the OP did not know he could lock certain properties of objects, like their position.

And Richard makes a great point, but, again, not sure if this treads on the OP's scope or not. Does the Community Edition allow standAlones? These are pretty opaque as far as the source code goes.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Lock a Code

Post by FourthWorld » Wed Nov 20, 2013 8:47 pm

dunbarx wrote:Does the Community Edition allow standAlones? These are pretty opaque as far as the source code goes.
The Community Edition can make standalones for all supported platforms except iOS, where Apple's App Store EULA is seen as logically incompatible with the GPL.

The only thing the Community Edition's standalone can't do is encrypt scripts, since that would also be logically incompatible with the GPL.

In addition, GPL compliance suggests posting the source stacks in a publicly-available place, and for the convenience of those in the community who might use your app it may be helpful to include a link to the source stacks on the same page where the app is downloaded.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply