Encrypting Stack Breaks Field References
bobsneidar at iotecdigital.com
Tue Dec 22 16:21:56 EST 2020
What he said. The promise of creating standalones and encrypted stacks containing code sounds promising, but there are caveats. It begs the question, how do we encrypt script only stacks or libraries? I don’t use encrypted stacks because my code is for internal use only, but if I ever went commercial, this would be something I would need.
> On Dec 13, 2020, at 4:02 PM, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> Ron Noice wrote:
> ? My program (built with LC 9.6.1 Indy Windows) contains a large number
> > of references to fields by variables.
> > only when I encrypt it does it fight back. Here's a simplified example
> > of what I'm doing:
> > create group "grpTree"
> > ...
> > copy fld "baseBox" to grp "grpTree"
> ^ that's your issue.
> Copying objects is disallowed in an encrypted stack, since of course once an object is copied it could be pasted into an unencrypted stack, and thus expose the source.
> You might consider moving the code from the encrypted stack to an encrypted behavior object, leaving the stack where copying must be done unencrypted.
> But if these objects are being copied only by script for the purpose of automatically building out a UI, without a need to alter the user's clipboard, you might consider using the clone command instead.
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
More information about the use-livecode