On 7/6/12 6:12 PM, Richard Gaskin wrote:
Peter Haworth wrote:

In the meantime, there are some custom property values that I just don't
want to hardcode in scripts.  I guess my only option is to encode them
somehow.

The problem with reading values from scripts is that the script property
can't be read from objects within a locked stack.

If you need to encrypt data you might consider using the encrypt command
with data stored in a custom prop.

I usually use encrypted properties. But it's possible to embed secret things in scripts even if the stack's locked:

function getSecretThing pType
  switch pType
  case "password"
    return "mypass"
    break
  case "username"
    return "mrEd"
    break
  case "keysToKingdom"
    return "aHorse"
    break
  end switch
end getSecretThing

It only works if the secret things don't change though.

--
Jacqueline Landman Gay         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com



_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to