HELP: App can't be run due to locked script

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dennis830521
Posts: 1
Joined: Thu May 26, 2016 8:54 am

HELP: App can't be run due to locked script

Post by dennis830521 » Thu May 26, 2016 9:04 am

Hi,

I encrypted my script with a password, but after executing it to an app and try to run the app, there is an error with instruction "put the script of this stack into tscript" since script is locked with password and can't be accessed.

How can I keep password-locking my script while making it not disrupt the execution of the app?

Could anyone help me with this problem :(

Thank you in advance!

Best,
Dennis Li

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

Re: HELP: App can't be run due to locked script

Post by Klaus » Thu May 26, 2016 11:29 am

Hi Dennis,

well, passwords are exactly made for this: to protect the scripts! :D

But you can:
...
set the passkey of this stack to "your password here..."
put the script of this stack into fld XXX
...
No idea how secure this is however.


Best

Klaus

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

Re: HELP: App can't be run due to locked script

Post by FourthWorld » Thu May 26, 2016 2:13 pm

Are you providing a scripting environment for your end-users, or do you just want to encrypt some data? If the latter see the encrypt and decrypt commands for stronger and more flexible options.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply