Re-2: script not working when the stack is password protected, why?

runrev at animabit.de runrev at animabit.de
Fri Aug 22 05:45:28 EDT 2008


Hello,

just got the info on chatrev that this approach

on openCard
if the environment <> "development" then
set the passKey of this stack to "xyz"
end if
end openCard

is not secure for a rev file

because someone could open the rev file, make another substack with a script (go stack "protectedstack" (now the password is passed); go stack "mynewsubstack"; put script of stack "protectedstack" ... voila)

I could not even think so evil ;-)

I try:

on anyhandler
set the passKey of this stack to "xyz"
do and let the script cut and work from the stack...
set the passKey of this stack to empty
end anyhandler

...

Greetings, Franz



More information about the use-livecode mailing list