Lock a Code
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Lock a Code
Set a password for your stack.
Re: Lock a Code
Check "password" (sic!
) in the dictionary.

Re: Lock a Code
I want to lock the stack code, not the hole stack...
Re: Lock a Code
Sorry, you can only lock the complete stack or nothing.
Re: Lock a Code
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
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
Re: Lock a Code
Hi Craig,
Best
Klaus
tell me more about this, pleasedunbarx wrote:...
There are ways to do that if this is what you really wanted

Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Lock a Code
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Lock a Code
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
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
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Lock a Code
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.dunbarx wrote:Does the Community Edition allow standAlones? These are pretty opaque as far as the source code goes.
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn