Encryption for file vs Standalone App

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

trevix
Posts: 1079
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Encryption for file vs Standalone App

Post by trevix » Wed Mar 08, 2017 12:48 pm

Thanks, probably the only solution.
Hard perhaps because of the need to do this operation so many time and pinpoint all the scripts that need the unlock (in my case at least)
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

trevix
Posts: 1079
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Encryption for file vs Standalone App

Post by trevix » Wed Mar 08, 2017 1:29 pm

Actually, reading from the dictionary about password:
After setting the password the password protection does not take effect until the stack has been removed from memory and reloaded.
Removing and reloading makes this method a little cumbersome

Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Encryption for file vs Standalone App

Post by jacque » Wed Mar 08, 2017 4:33 pm

What features do your users need? If they don't need access to the scripts then you may be able to just set the password once and forget about it. The only other restriction besides script access is copying objects.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

trevix
Posts: 1079
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Encryption for file vs Standalone App

Post by trevix » Wed Mar 08, 2017 5:29 pm

My App need to do cloning and copying of objects, stacks, cards, with repeated saving and drag/drop.
It is an App based on templates and stacks that run using those templates. It won't run with script passworded.

Anyway, as i mentioned here (http://forums.livecode.com/viewtopic.ph ... 37#p152137) it is easy to cheat a protected stack if passkeyied by its App: open it with the IDE and paste some code on a new object.
Also the passkey is a one way: once unlocked by script, you cannot relock it by script.See BUG 546

I may have to resort to encrypt and decrypt.
But since LC is supposed to be able to easily create commercial Apps, with a minimum reasonable protection, I think LC has to grow a lot more, in this sense.

Regards
Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Encryption for file vs Standalone App

Post by jacque » Wed Mar 08, 2017 6:02 pm

One option might be to move all the working scripts into the standalone and put it in use when it launches. The template stacks would have only the barest framework required to run. That way the app stack can always remain protected and you wouldn't need to protect the template stacks at all. I've done this with very large projects that run multiple template-based stacks and it works well.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply